首页 > 解决方案 > 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?

标签: javascriptlaravelgoogle-chromevue.jsrequest

解决方案


推荐阅读