Open
Description
For those implementing a variation of this using AWS and having issues with HttpOnly Cookies, and CORS here are some tips:
- Server-side: Make sure to set your cookie with
HttpOnly; SameSite=None; Secure
- Server-side: Make sure you return a header
Access-Control-Allow-Origin
with a specific value, NOT"*"
- Server-side: With your Serverless config, make sure your
/login
and/refresh-token
functions'cors
value includes a specificorigin
(same as above) as well asheaders
array including"Access-Control-Allow-Credentials"
not just the API Gateway defaults. This is so you can setwithCredentials
on the client side - Client-side: set axios to have
withCredentials: true
Metadata
Metadata
Assignees
Labels
No labels