{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/1867","repository_url":"https://api.github.com/repos/systemjs/systemjs","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/1867/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/1867/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/1867/events","html_url":"https://github.com/systemjs/systemjs/issues/1867","id":369487580,"node_id":"MDU6SXNzdWUzNjk0ODc1ODA=","number":1867,"title":"Sending a Bearer Authorization Header in SystemJS 0.21.5","user":{"login":"edisontrent1337","id":5367873,"node_id":"MDQ6VXNlcjUzNjc4NzM=","avatar_url":"https://avatars2.githubusercontent.com/u/5367873?v=4","gravatar_id":"","url":"https://api.github.com/users/edisontrent1337","html_url":"https://github.com/edisontrent1337","followers_url":"https://api.github.com/users/edisontrent1337/followers","following_url":"https://api.github.com/users/edisontrent1337/following{/other_user}","gists_url":"https://api.github.com/users/edisontrent1337/gists{/gist_id}","starred_url":"https://api.github.com/users/edisontrent1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisontrent1337/subscriptions","organizations_url":"https://api.github.com/users/edisontrent1337/orgs","repos_url":"https://api.github.com/users/edisontrent1337/repos","events_url":"https://api.github.com/users/edisontrent1337/events{/privacy}","received_events_url":"https://api.github.com/users/edisontrent1337/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-12T10:12:27Z","updated_at":"2018-10-12T17:51:06Z","closed_at":null,"author_association":"NONE","body":"How do I exactly have to specify the meta configuration in order for SystemJS to send XHR requests?\r\nI would like to send a JSON Web Token to access a bundle.js file cross origin.\r\n"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/429407243","html_url":"https://github.com/systemjs/systemjs/issues/1867#issuecomment-429407243","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/1867","id":429407243,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTQwNzI0Mw==","user":{"login":"guybedford","id":598730,"node_id":"MDQ6VXNlcjU5ODczMA==","avatar_url":"https://avatars1.githubusercontent.com/u/598730?v=4","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T17:51:06Z","updated_at":"2018-10-12T17:51:06Z","author_association":"MEMBER","body":"Yes we still need to add this and it can be done quite easily, we just need to decide on an approach here.\r\n\r\nCurrently tracking in https://github.com/systemjs/systemjs/issues/1863.\r\n\r\nI'm still also not sure if we want to have a configuration system in core or what type of configuration pattern to use for extensions.\r\n\r\nCould be something like:\r\n\r\n```js\r\nSystem.config({\r\n  authentication: {\r\n    'https://domain.com': 'authentication-header'\r\n  }\r\n});\r\n```\r\n\r\nor more property-based:\r\n\r\n```js\r\nSystem.authentication['https://domain.com'] = 'authentication-header''\r\n```"}}
{"actor":{"display_login":"guybedford"}}