Linked Questions
362 questions linked to/from Disable same origin policy in Chrome
18 votes
3 answers
94k views
Bypassing CORS issue in Chrome [duplicate]
We are facing an issue where using Chrome request via XMLHTTPRequest is getting failed with below error: Failed to load <server url>: No 'Access-Control-Allow-Origin' header is present on ...
23 votes
1 answer
118k views
How can I resolve the error "URL scheme must be "http" or "https" for CORS request." for this code [duplicate]
It shows below message in the console. sandbox.js:1 Fetch API cannot load file:///C:/Users/Lizzi/Desktop/novice%20to%20ninja/todos/luigi.json. URL scheme must be "http" or "https" for CORS ...
3 votes
1 answer
2k views
Chrome getElementsByTagName() with xml DOM returns improper NodeList [duplicate]
Possible Duplicate: Chrome: Disable same origin policy so a little background information about my issue: Writing a JavaScript file for a gallery; pulling data from an xml file, here. Loading the ...
0 votes
0 answers
150 views
JQuery working on host server but not local computer [duplicate]
I am very new to using jQuery so please bear with me. I am using a line of code found online. The code works when uploaded to my gatorhost server, bit not when testing on my local computer. Both the ...
738 votes
27 answers
2.6m views
Response to preflight request doesn't pass access control check - No 'Access-Control-Allow-Origin' header
I'm getting this error using ngResource to call a REST API on Amazon Web Services: XMLHttpRequest cannot load http://server.apiurl.com:8000/s/login?login=facebook. Response to preflight request doesn'...
634 votes
16 answers
780k views
Why is an OPTIONS request sent and can I disable it?
I am building a web API. I found whenever I use Chrome to POST, GET to my API, there is always an OPTIONS request sent before the real request, which is quite annoying. Currently, I get the server to ...
869 votes
9 answers
1.9m views
SecurityError: Blocked a frame with origin from accessing a cross-origin frame
I am loading an <iframe> in my HTML page and trying to access the elements within it using JavaScript, but when I try to execute my code, I get the following error: SecurityError: Blocked a ...
371 votes
18 answers
822k views
Origin is not allowed by Access-Control-Allow-Origin
I'm making an Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in PhoneGap). The response from the server is the following: XMLHttpRequest cannot load http://nqatalog....
201 votes
25 answers
1.9m views
How can I solve 'Redirect has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header'?
I am working on an application using Vue.js. According to my setting, I need to pass to a variable to my URL when a setting change. $.get('http://172.16.1.157:8002/firstcolumn/' + c1v + '/' + c1b, ...
316 votes
10 answers
1.1m views
How to call a REST web service API from JavaScript?
I have an HTML page with a button on it. When I click on that button, I need to call a REST Web Service API. I tried searching online everywhere. No clue whatsoever. Can someone give me a lead/...
130 votes
15 answers
316k views
Disable-web-security in Chrome 48+
I have a problem with the --disable-web-security flag. It is not working in Chrome 48 and Chrome 49 beta on Windows. I've tried killing all of the instances, reboot and run Chrome with the flag first ...
158 votes
13 answers
512k views
How to launch html using Chrome at "--allow-file-access-from-files" mode?
I have the same situation with HERE And to solve this problem I have to launch html file using Chrome at "--allow-file-access-from-files" mode. I tried next steps many times, but it doesn't work. ...
115 votes
12 answers
515k views
No 'Access-Control-Allow-Origin' header is present on the requested resource error
I'm trying to fetch the feed of a news website. Thought I'd use google's feed API to convert the feedburner feed into json. The following url will return 10 posts from the feed, in json format. http://...
79 votes
20 answers
459k views
'Access-Control-Allow-Origin' issue when API call made from React (Isomorphic app)
I'm running into an issue with my isomorphic JavaScript app using React and Express. I am trying to make an HTTP request with axios.get when my component mounts componentDidMount() { const url = ...
111 votes
11 answers
158k views
AJAX in Chrome sending OPTIONS instead of GET/POST/PUT/DELETE?
I am working on an internal web application at work. In IE10 the requests work fine, but in Chrome all the AJAX requests (which there are many) are sent using OPTIONS instead of whatever defined ...