Disable same origin policy in Chrome
Close chrome (or chromium) and restart with the --disable-web-security
argument. I just tested this and verified that I can access the contents of an iframe with src="http://google.com" embedded in a page served from "localhost" (tested under chromium 5 / ubuntu). For me the exact command was:
Note : Kill all chrome instances before running command
chromium-browser --disable-web-security --user-data-dir="[some directory here]"
The browser will warn you that "you are using an unsupported command line" when it first opens, which you can ignore.
From the chromium source:
// Don't enforce the same-origin policy. (Used by people testing their sites.)
const wchar_t kDisableWebSecurity[] = L"disable-web-security";
Before Chrome 48, you could just use:
chromium-browser --disable-web-security
Trying to disable Chrome same origin policy
You need to use both arguments. This is how I run it on my mac.
open -a Google\ Chrome --args --disable-web-security -–allow-file-access-from-files
This is how it should be for windows:
"C:\PathTo\Chrome.exe" –allow-file-access-from-files -disable-web-security
Chrome disable web security same origin policy no more working
I used this Chrome plugin instead and it wokrs :)
https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi
Disable same origin policy in Chrome
Close chrome (or chromium) and restart with the --disable-web-security
argument. I just tested this and verified that I can access the contents of an iframe with src="http://google.com" embedded in a page served from "localhost" (tested under chromium 5 / ubuntu). For me the exact command was:
Note : Kill all chrome instances before running command
chromium-browser --disable-web-security --user-data-dir="[some directory here]"
The browser will warn you that "you are using an unsupported command line" when it first opens, which you can ignore.
From the chromium source:
// Don't enforce the same-origin policy. (Used by people testing their sites.)
const wchar_t kDisableWebSecurity[] = L"disable-web-security";
Before Chrome 48, you could just use:
chromium-browser --disable-web-security
Disable same origin policy on Android Chrome
There's no way to disable the same origin policy because it's fundamental to the security of the web. There are some ways around it though, like CORS, which should work in Chrome for Android.
Related Topics
Html5 Canvas Drawimage Ratio Bug Ios
Jquery: Why Use Document.Ready If External Js At Bottom of Page
How to Create a Sticky Navigation Bar That Becomes Fixed to the Top After Scrolling
How to Use Jquery to Select a Dropdown Option
Why Write ≪Script Type="Text/JavaScript"≫ When the Mime Type Is Set by the Server
Angularjs to Output Plain Text Instead of Html
How to Escape Quotes in HTML Attribute Values
How to Get the Position of Text Within an Element
How to Update Placeholder Color Using JavaScript
Textarea That Can Do Syntax Highlighting on the Fly
React.Js: Set Innerhtml VS Dangerouslysetinnerhtml
How to Bind Events on Ajax Loaded Content
Relative Paths in JavaScript in an External File
Is Chrome'S JavaScript Console Lazy About Evaluating Objects