0

I have multiple subdomains.

main domain is wordpresss site. I use it's cookies to login to other site. One of my site is django based the session authentication works perfectly. but When Axios sends request to server. it doesn't send the main website cookies

ps.com Main Site

subs.ps.com React Site

dj.ps.com django Site

i am making request from React site to django site i need react axios to contain the main site cookie. i have tried withCredentials = true. that doesn't work response of url when get normally. ( if user is logged in )

https://personalshopper.personalisedstories.co.uk/subscriptions/user-detail/

{"username": "Test Customer"}

but with react i get only 401 status code.

gulbaz khan
  • 145
  • 1
  • 7
  • 1
    Maybe have a look here: https://stackoverflow.com/questions/18492576/share-cookie-between-subdomain-and-domain – Adam Apr 23 '21 at 13:31

0 Answers0