systemjs / systemjs

Dynamic ES module loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sending Authorization header

Jayp2002 opened this issue · comments

  • SystemJS Version:
  • Which library are you using?
    • system.js
    • s.js
    • system-node.cjs
  • Which extras are you using?
    • AMD extra
    • Named Exports
    • Named Register
    • Transform
    • Use Default
    • Global
    • Dynamic Import Maps
  • Are you using any custom hooks?

Question

How can i send authorisation header? I am using meta tag to set headers but getting CORS error when the request is made. Is there any other config I need to set?

meta: {
'*': { authorization: window.localStorage.token }
},