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
- What is console.log?
- Compare two dates with JavaScript
- In reactJS, how to copy text to clipboard?
- SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag
- XMLHttpRequest cannot load XXX No ‘Access-Control-Allow-Origin’ header
- Uncaught TypeError: Cannot read property ‘props’ of null
- Angular: conditional class with *ngClass
- Failed to compile. Module not found: Can’t resolve ‘react-router-dom’
- How to measure time taken by a function to execute
- How can I check whether a radio button is selected with JavaScript?
- What is the equivalent of Java’s System.out.println() in Javascript?
- How can I exit from a javascript function? [duplicate]
- Object doesn’t support property or method ‘addEventListener’
- Implementing Isomorphic JavaScript (React JS) in WordPress?
- WordPress problem with htmlentities
- WP REST API Post Status Using JavaScript
- How to prevent those PHP variables from being cached on WordPress?
- var is undefined in a Gutenberg block
- Got a TypeError after update and need to adapt found solution
- How do you filter the list of states when country is selected? [closed]
- Prevent update_checkout from firing mid-typing
- Suddenly extra hex string in tags
- Is there some jQuery conflict here?
- Gutenberg – useEffect manipulate DOM after block re-renders DOM
- woocommerce deposit Form with AJAX and shortcode won’t update but add to previous output
- Spans in gutenberg
- Multiple Notifications SetInterval
- Get a default customizeAction text for a section using Customizer JS API
- custom page url slug needs illegal ?id=1 for javascript
- Passing object to FormTokenField suggestions