aruntk / polymer-apollo

🚀 Polymer Apollo Integration
MIT License
78 stars 7 forks source link

Cannot pass headers #19

Closed timur560 closed 7 years ago

timur560 commented 7 years ago

I was trying to pass auhtorization headers, but it doesn't work.

var networkInterface = createNetworkInterface({
  uri: 'http://buurb.core.local/api/v1/graphql',
  opts: {
    headers: {
      'Authorization': 'Bearer wzTvclDTOA1EpRcsROLP_yo2risS0v5C',
    }
  }
});
timur560 commented 7 years ago

The reason was that OPTIONS should always return 200 without authorization. The issue was fixed by server updating.