Skip to content
Discussion options

You must be logged in to vote

http://localhost:3000 and http://localhost:8080 are same-site

What about the production base-URLs?

Anyway, I tried to send a cross-origin request from a React app running on http://localhost:3000 to a stateful REST API http://localhost:8080/me and Chrome did not attach the SESSION cookie from http://localhost:8080. So, no, according to Chrome, http://localhost:3000 and http://localhost:8080 do not satisfy the SameSite policy, and there is no other choice than serving the front and back ends from the same origin for requests to be authorized.

I'm not planning on changing the current architecture

You are already changing the architecture: moving the OAuth2 client from the front to the b…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
4 replies
@Kevinbarre
Comment options

@ch4mpy
Comment options

Answer selected by Kevinbarre
@Kevinbarre
Comment options

@Kevinbarre
Comment options

Comment options

You must be logged in to vote
1 reply
@Kevinbarre
Comment options

Comment options

You must be logged in to vote
4 replies
@Kevinbarre
Comment options

@Kevinbarre
Comment options

@ch4mpy
Comment options

@Kevinbarre
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants