486 questions with no upvoted or accepted answers
12
votes
1
answer
5k
views
I can't set cookie on localhost
I'm using NodeJS with the Express framework with the cookie-parser middleware on localhost:3333. My frontend is served by react dev server on localhost:3000. This is my first attempt at anything to ...
6
votes
0
answers
10k
views
Angular: How to fix SameSite Cookie issue
My application is on dev-server. It is working in all platforms except Facebook app browser in mobile, although its working on chrome mobile browser.
I wasted so many hours and after that I discovered ...
6
votes
0
answers
2k
views
Cookies works in Postman , but not in browser
I created a login API using Django rest framework and then used session auth.
When i sent request via Postman , i get csrftoken and sessionid cookies.
and i was able to access content on backend.
OK ...
5
votes
0
answers
769
views
Session cookie not expiring after closing browser
I was trying to set a session cookie in ReactJS using React-Cookie package and didn't mention any expiry. It created a session cookie,as expected, but my browser isn't deleting cookie when I close the ...
5
votes
1
answer
556
views
Cookie working fine on localhost but not working on vercel production
I am setting a cookie in middleware:
export function middleware(req: NextRequest) {
const cookie = req.cookies.get("app_id")?.value;
if (cookie) return NextResponse.next();
const ...
5
votes
1
answer
2k
views
Safari ignore "expire" cookie directive
Safari on MAC, iPhone and iPad is ignoring expire directive of cookie creation and it clear cookies after closing the browser, can you please explain why, and how can i resolve this issue.
This is ...
5
votes
1
answer
4k
views
What is the recommended approach to storing a Session ID
I am building an android application and I am curious for what is "best practice" when it comes to session management.
I set up my application to authenticate (to google-play-services). I would like ...
5
votes
1
answer
3k
views
IE8 not saving cookie values?
I'm having some problems with IE8 respecting a cookie I'm setting via the jQuery cookie plugin. Things are working fine in Firefox, Chrome, Safari, IE6 and IE7 (via IETester), but IE8 just doesn't ...
4
votes
1
answer
979
views
Flutter web set Cookie is not in response headers, but same available in flutter mobile
there is one error that I'm facing so the scenario is this
I'm trying to set the cookies from a backend node js server to flutter web
this is the code for the cookie
res.cookie('something', 'hello ...
4
votes
0
answers
3k
views
How to set session cookie on frontend when frontend and backend are on different domains
I am working on a fullstack project that has a React + Next.js frontend and a REST API built with Express + Node.js + MongoDB for the backend. The authentication system was to be implemented using ...
4
votes
1
answer
1k
views
Firefox won't store cookie when page is loaded within an iframe
I have a parent webpage with a child iframe:
parent at https://first-site.com
child at <iframe src="https://second-site.com"> (inside of parent)
cookie is set by the second-site.com ...
4
votes
0
answers
2k
views
Does SameSite=Strict cookie option obsolete CORS?
I was researching the purpose of CORS headers, and the accepted answer here: What is the issue CORS is trying to solve? says, that the reason for its existence is, to prevent cookies unintentionally ...
4
votes
0
answers
1k
views
Sharing cookies between multiple level subdomains
I'm having trouble understanding why cookies are saved in a scenario in my application but not in another.
I have multiple services, each with its own subdomain, making REST requests to each other. In ...
4
votes
0
answers
396
views
Set cookie via Asp.net Web Api which is subdomain for SPA
I have a single page app(based on Asp.net MVC) that communicates with Asp.net Web API. I want to set secure and HttpOnly cookie for authentication via API but all ways did not work which is on the ...
4
votes
1
answer
3k
views
How to set custom headers with Keycloak Gatekeeper?
I have Keycloak and Keycloak-Gatekeeper set up in OpenShift and it's acting as a proxy for an application that is running.
The application that Keycloak Gatekeeper is proxying requires a custom ...