- Access-Control-Allow-Origin error in a chrome extension
- var xhr = new XMLHttpRequest();
- xhr.onreadystatechange = function(data)...
- xhr.open('GET', url, true);
- xhr.send();
- DOMContentLoaded
- load
- onload
- header('Access-Control-Allow-Origin: http://blah.com');
- header('Access-Control-Allow-Credentials: true' );
- header('Access-Control-Allow-Headers: Content-Type, Content-Disposition, attachment');