I am trying to redirect my user by checking a cookie using Cloudflare workers. The cookie name I m setting is login=true. So if the cookie exists user goes to app.xyz.com and if it doesn’t exist user goes to xyz.com. I have written a cookie setting function inside the login func. But safari won’t allow me to set the cookie for more than 7 days. How can I fix this problem?.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Cloudflare Workers Modifying "redirect_uri" Parameter | 1 | 61 | July 16, 2024 | |
Set custom cookie in Actions | 2 | 1606 | November 17, 2023 | |
Redirect to Auth0 from CloudFront if not already authed? | 2 | 1320 | October 11, 2023 | |
CloudFlare Worker verify access token | 2 | 4265 | June 28, 2022 | |
Redirect using cookies after login | 2 | 3892 | December 21, 2022 |