netlify / gotrue

An SWT based API for managing users and issuing SWT tokens.
https://www.gotrueapi.org
MIT License
3.84k stars 285 forks source link

Allow X-Use-Cookie header #170

Closed bcomnes closed 6 years ago

bcomnes commented 6 years ago

- Summary

Gotrue-js supports the X-Use-Cookie header (added https://github.com/netlify/gotrue-js/pull/12), but when you try to use that option in development, you get a failed cors call aparently: https://github.com/netlify/netlify-cms/issues/1213#issuecomment-381202929

Not 100% on this change, would love @rybit or @brycekahle thoughts on this change.

- Test plan

- Description for the changelog

Add X-Use-Cookie header to allowed CORS headers.

- A picture of a cute animal (not mandatory but encouraged)