Cross-Domain Cookie Sharing Issue between WordPress and React.js Servers #2887
sauravsingh1996
started this conversation in
React
Replies: 1 comment
-
What is the main issue? If you check in your browser dev tools Application tab, are you seeing that HttpOnly is not being set or that Secure is not being set? In my experience both need to be true to be able to share login between WordPress and React. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm facing a challenge involving cross-domain cookie sharing between two servers. I have two servers set up as follows:
My goal is to share a cookie with the httponly attribute set to true between these two domains. However, I'm encountering difficulties in achieving this functionality. Despite my efforts, I'm unable to retrieve the cookie on the different domain.
To provide some context, I'm utilizing the following technologies and plugins:
I've configured CORS settings to allow communication between these domains, but the issue persists.
My suspicion is that the problem might be related to the nature of cookies and security policies across different domains. I would appreciate any insights or suggestions from the community regarding potential solutions or debugging steps to identify and resolve this issue.
If anyone has experience with cross-domain cookie sharing, especially in the context of WordPress, React.js, and CORS settings, your guidance would be immensely helpful.
Beta Was this translation helpful? Give feedback.
All reactions