Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWT with CORS? #81

Closed
rmpugh opened this issue Jun 30, 2016 · 3 comments
Closed

JWT with CORS? #81

rmpugh opened this issue Jun 30, 2016 · 3 comments

Comments

@rmpugh
Copy link

rmpugh commented Jun 30, 2016

Hi there,

If I add "cors: true" to the sampleRequest in the demo, the {{jwt.token}} is not replaced with the actual token when hitting the server. Is there additional changes I have to make or is this expected behavior?

Many thanks,
Rob

@sandlerr
Copy link
Contributor

Hi Rob,
This is expected behaviour. Adding cors: true means you aren't able to use secure settings for that request. CORS requests are made directly from the browser to the cross-origin destination without using our secure proxy. The secure proxy is required to interpolate the value of a secure setting. If you want to interpolate values into CORS requests, they need to be normal (non-secure) settings.

@rmpugh
Copy link
Author

rmpugh commented Jun 30, 2016

Hey sandlerr,

Many thanks for the quick response - and thanks for clearing that up - makes complete sense.

@rmpugh rmpugh closed this as completed Jun 30, 2016
@sandlerr
Copy link
Contributor

Not a problem. If you haven't already, you may also find help from checking out our community, developer portal or opening a ticket.

Best of luck developing your app!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants