-
Notifications
You must be signed in to change notification settings - Fork 45
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-Originwith a specific value, NOT"*" - Server-side: With your Serverless config, make sure your
/loginand/refresh-tokenfunctions'corsvalue includes a specificorigin(same as above) as well asheadersarray including"Access-Control-Allow-Credentials"not just the API Gateway defaults. This is so you can setwithCredentialson the client side - Client-side: set axios to have
withCredentials: true
Metadata
Metadata
Assignees
Labels
No labels