{"action":"opened","issue":{"url":"https://api.github.com/repos/jrburke/requirejs/issues/1455","labels_url":"https://api.github.com/repos/jrburke/requirejs/issues/1455/labels{/name}","comments_url":"https://api.github.com/repos/jrburke/requirejs/issues/1455/comments","events_url":"https://api.github.com/repos/jrburke/requirejs/issues/1455/events","html_url":"https://github.com/jrburke/requirejs/issues/1455","id":118890263,"number":1455,"title":"How to add custom request headers to calls that load scripts","user":{"login":"rvnath","id":4309494,"avatar_url":"https://avatars.githubusercontent.com/u/4309494?v=3","gravatar_id":"","url":"https://api.github.com/users/rvnath","html_url":"https://github.com/rvnath","followers_url":"https://api.github.com/users/rvnath/followers","following_url":"https://api.github.com/users/rvnath/following{/other_user}","gists_url":"https://api.github.com/users/rvnath/gists{/gist_id}","starred_url":"https://api.github.com/users/rvnath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvnath/subscriptions","organizations_url":"https://api.github.com/users/rvnath/orgs","repos_url":"https://api.github.com/users/rvnath/repos","events_url":"https://api.github.com/users/rvnath/events{/privacy}","received_events_url":"https://api.github.com/users/rvnath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-25T17:50:09Z","updated_at":"2015-11-25T17:50:09Z","closed_at":null,"body":"As per the security audit done on my web app, I am expected to send security related headers in requests that load script files.  http://content-security-policy.com/.  As per this, I need to send a request header like \r\n\r\nDirective | Example Value | Description\r\n----------- | ------------------- | -----------------\r\nscript-src | 'self' js.example.com | Defines valid sources of JavaScript. \r\n\r\nI am using RequireJS to load the script files.  So, is there a way I can tell requirejs to use specific headers while sending request to fetch the script files..."}}