我尝试使用window.open JavaScript标签从域1中的域2中打开一个URL,在用户在域2上做了一些工作人员之后,使用window.opener将结果放到域1上的div中,所有操作都很好,但是在最后一步,我在铬控制台中得到了跨原点错误Uncaught DOMException: Blocked a frame with origin "http://example.com" from accessing如何允许在PHP
我正在打电话到四方OAuth网址。浏览器控制台打印以下错误
XMLHttpRequest cannot load https://foursquare.com/oauth2/authenticate?client_id=DF4I1TGNVHAM40PDLOHZQZ…onse_type=code&redirect_uri=http://localhost:9000/auth/foursquare/callback. No 'Access-Control-Allow-Origin' header is present on the requested resource. O