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
Related Posts:
- Cross-Origin Read Blocking (CORB)
- syntax error: unexpected token <
- Error OPTIONS net::ERR_CONNECTION_REFUSED
- Chrome sendrequest error: TypeError: Converting circular structure to JSON
- require is not defined? Node.js
- Cannot open local file – Chrome: Not allowed to load local resource
- How to disable JavaScript in Chrome Developer Tools?
- Cannot open local file – Chrome: Not allowed to load local resource
- Getting Error “Form submission canceled because the form is not connected”
- Getting Error “Form submission canceled because the form is not connected”
- What is the meaning of == $0 that is shown in inspect element of google chrome for the selected element [duplicate]
- Infinite Scrolling in Asp.Net MVC with jQuery / AJAX Issues
- ajax jquery simple get request
- jQuery get textarea text
- Response to preflight request doesn’t pass access control check
- jQuery AJAX cross domain
- Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser
- Send POST data using XMLHttpRequest
- Set timeout for ajax (jQuery)
- How to generate a simple popup using jQuery
- What does on() in JavaScript do?
- jQuery AJAX submit form
- jQuery Ajax File Upload
- How can I upload files asynchronously with jQuery?
- What’s the difference between console.dir and console.log?
- Adding images to a Bootstrap Carousel with AJAX
- How can I quickly retrieve a value from a MapIterator returned from Object.keys function?
- AJAX response error: net::ERR_EMPTY_RESPONSE
- Access Control Request Headers, is added to header in AJAX request with jQuery
- React Js: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
- Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
- Uncaught SyntaxError: Unexpected token :
- XMLHttpRequest status 0 (responseText is empty)
- Basic Ajax send/receive with node.js
- Execute PHP function with onclick
- blocked a frame of origin “null” from accessing a cross-origin frame – chrome
- How to use jQuery in chrome extension?
- Uncaught TypeError: Cannot read property ‘appendChild’ of null
- JSON.parse() not working
- Disable Chrome strict MIME type checking
- getElementsByAttribute() is not a function
- jQuery Ajax POST example with PHP
- Refresh/reload the content in Div using jquery/ajax
- Chrome/jQuery Uncaught RangeError: Maximum call stack size exceeded
- Uncaught Reference Error: stLight is not defined (in Chrome only)
- How does AJAX work?
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- Scroll to bottom of div?
- How to manage a redirect request after a jQuery Ajax call
- How do I load an HTML page in a div using JavaScript?
- Video auto play is not working in Safari and Chrome desktop browser
- How to allow CORS in react.js?
- “Uncaught TypeError: a.indexOf is not a function” error when opening new foundation project
- FormData append not working
- Resource interpreted as Document but transferred with MIME type application/zip
- Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
- Download a file by jQuery.Ajax
- What is ‘xmlhttp.setRequestHeader();’ and in which situations is it used?
- How to force JavaScript to deep copy a string?
- “NS_ERROR_DOM_BAD_URI: Access to restricted URI denied”
- Ajax success function
- JAX post error : Refused to set unsafe header “Connection”
- AngularJS POST Fails: Response for preflight has invalid HTTP status code 404
- “Uncaught TypeError: Illegal invocation” in Chrome
- $http.get(…).success is not a function
- Adding wp_ajax to a theme outside functions.php (on specific template page)
- Does wp_localize_script call a Javascript Function or Simply Pass PHP Parameters to It
- How to make wordpress URLS google friendly for ajax driven sites?
- Tinymce.js editor in Chrome?
- AJAX not Working with php as supposed
- How can I generate a rainbow circle using HTML5 canvas?
- What’s the difference between “{}” and “[]” while declaring a JavaScript array?
- What does “javascript:void(0)” mean?
- For-each over an array in JavaScript
- How to delete a cookie?
- What is TypeScript and why would I use it in place of JavaScript? [closed]
- How do you use the ? : (conditional) operator in JavaScript?
- Which equals operator (== vs ===) should be used in JavaScript comparisons?
- are there dictionaries in javascript like python?
- How to do associative array/hashing in JavaScript
- How to make a discord bot create an invite for every server it joins?
- ES6 Map in Typescript
- addEventListener vs onclick
- “Uncaught SyntaxError: Cannot use import statement outside a module” when importing ECMAScript 6
- How to re-enable right click so that I can inspect HTML elements in Chrome?
- How do I check if an array includes a value in JavaScript?
- JavaScript document.getElementById().value logs empty value
- How do I color a hexagonal grid such that it doesn’t have neighbors of the same color?
- How to format a JavaScript date
- What does href expression do?
- map function for objects (instead of arrays)
- Wait 5 seconds before executing next line
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to check whether a string contains a substring in JavaScript?
- Check if a string has a certain piece of text [duplicate]
- Kadane’s algorithm explained
- What is console.log?
- Dynamically creating charts of each row in an HTML table with chart.js
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to convert a string to an integer in JavaScript?