Timeline for Setting cookies in WP REST API requests
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 17, 2023 at 7:49 | vote | accept | rorymorris89 | ||
Jan 18, 2022 at 19:16 | answer | added | user4301296 | timeline score: 0 | |
Nov 3, 2018 at 16:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 6, 2017 at 17:20 | answer | added | rorymorris89 | timeline score: 2 | |
Jan 6, 2017 at 17:16 | comment | added | rorymorris89 |
@GentlemanMax yeah, it is cross-domain. I'm building a particularly tricky single sign-on implementation for a client. I've learnt that setting Access-Control-Allow-Credentials: true in my headers may work - giving that a try now.
|
|
Jan 6, 2017 at 17:14 | comment | added | TheGentleman | Hmm, is this a cross domain request? If so then you might be running up against a CORS issue. | |
Jan 6, 2017 at 17:10 | comment | added | rorymorris89 |
@GentlemanMax Yes! They are there in the Response Headers: Set-Cookie:auth_token=xxxx-xxxx-xxxx-xxxx-xxxx; expires=Fri, 06-Jan-2017 18:08:37 GMT; Max-Age=3600; path=/; domain=mywebsite.com - but they don't get set.
|
|
Jan 6, 2017 at 17:09 | history | undeleted | rorymorris89 | ||
Jan 6, 2017 at 17:06 | history | deleted | rorymorris89 | via Vote | |
Jan 6, 2017 at 17:06 | comment | added | TheGentleman |
Do you see the set-cookie directive in the return headers from the rest call?
|
|
Jan 6, 2017 at 16:55 | history | asked | rorymorris89 | CC BY-SA 3.0 |