View more context

 

adrexia

that’s the name space issue. So long as you switch to the current namespace used in the code, the MemberTypeCreator worked fine.

adrexia

…its just that that namespace was the wrong one.

sander_ha

Hmm is it even possible to use the graphql dev tools (graphiql), with the JWT flow?

sander_ha

Ah https://github.com/graphql/graphiql/issues/59 ..

Show 1 attachment(s)
GitHub  
How to use Graphiql when /graphql protected by JWT token (authorization header) · Issue #59 · graphql/graphiql

My /graphql route is protected by JWT token, so every HTTP request needs to set: headers: { Authorization: 'Bearer ' + token } To get through the authentication middleware and hit /graphql....

Hide attachment content
sander_ha

By the way I dont really understand the CORS part, why is that required exactly?

Firesphere

CORS makes sure that the request comes from a trusted origin