javascript - Chrome "request does not match recipient windows's origin"
问题描述
I am working on a application which has laravel as the backend and vuejs as the frontend. Now I am doing this request but I get an error which obviously just happens on the local development. Is there a way to get around that?
async login () {
const newWindow = openWindow('', 'Title');
newWindow.location.href = 'http://backend.test/api/login/oauthprovider';
},
When this is getting executed I get this error:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://backend.test') does not match the recipient window's origin ('http://127.0.0.1:8080').
Can I disable this for developing purposes?
解决方案
推荐阅读
- asp.net - 对于新创建的 asp.net Web 表单项目,该应用程序处于中断模式
- windows - 屏幕录制和直播 (Windows DXGI) - C++
- python-3.x - Python:如何将 timedelta 保存到 MySQL
- html - HTML CSS,背景图片不会加载
- capybara - 如何在测试运行期间更改下载目录
- django - Django RESTApi 中的 URL 参数
- neo4j - 使用 Cypher 查找 Person 的所有孩子及其配偶
- python - python中的单变量语句while循环
- azure - Azure IoT 中心 - DDOS 监控
- dataframe - Pyspark Dataframe Column - 转换表示为列中字符串的十进制值