35,140 questions
0
votes
0
answers
39
views
Set Cookie for a regex path
I want to set cookie for a path that matches an exact regex.
For example, consider that I have the below APIs
sample.com/resource
sample.com/resource/1234 *(here, '1234' is resource's id)*
sample.com/...
-1
votes
1
answer
57
views
Expiring a Secure Cookie
This code worked six months ago, now it does not. The code did not change
private void ExecuteResultAction(ActionContext context)
{
var http = context.HttpContext;
...
0
votes
0
answers
35
views
Django + Next cookies not being set when app is hosted
I have a Django app hosted on Google Cloud Run that upon logging in, sets a sessionid and csrftoken in the browser cookies. In my frontend Next app, which I am currently running locally, I redirect to ...
0
votes
0
answers
151
views
Cookiebot Consent Preferences Not Persisting After Page Refresh in React Application
I'm trying to implement a Cookiebot cookie consent banner in my React application, but I'm facing an issue where, after I decline some unnecessary cookies, the preferences are not being saved across ...
0
votes
1
answer
87
views
Cookies are not sent when I run my Angular app in production mode
I am having issues sending cookies from my Angular app when I run it in production mode.
The steps I follow are the following:
I compile with: ng build --configuration=production
I run with: http-...
0
votes
1
answer
104
views
Cookie issues with Passport: why are cookies not sent/stored?
I'm struggling while implementing authentication in my Express application using Passport.js.
First of all here are all my packages' versions and my config:
"passport": "^0.7.0",
&...
0
votes
0
answers
23
views
Why my cookies aren't stored in cookie storage in Google Chrome (or anywhere)
I have deployed my front-end on Vercel and back-end on railway. Localy it works fine, but in production I have a problem with non-storing cookies.
Here is my axios config for front-end (Next.js):
...
0
votes
0
answers
39
views
Next.js Middleware Removing Cookies on Protected Routes (Works Locally)
This is my middleware.js file for the front end in Next.js. I want to create protected routes so that if a user doesn't have an access token, they are redirected to /. However, the cookies from the ...
0
votes
1
answer
50
views
are cookies names __Secure-SessionI more secure?
MDN on cookie names
I find very little evidence that a cookie name has effect on its security. Is prependening __Secure- to a cookie name increasing security? Or is this more a code of conduct without ...
0
votes
1
answer
37
views
Manage Cookies on Swift NWConnection
Until now I have found no way to use a higher level Swift native method (URlSession for example) to make a basic GET/POST request using a HTTP proxy that requires AUTH. I have this Stack OverFlow ...
0
votes
0
answers
46
views
How to get events from a website using tcl and websockets?
I am looking for some snippet made using websocket implementation in tcl to retrieve footaball game events of the games marked as HOJE (portuguese word for TODAY) from this site.
The snippet has to ...
1
vote
0
answers
34
views
Modify NEXT_LOCALE cookie domain | nextjs 15
How can I modify the cookie of `NEXT_LOCALE to be available cross-subdomain?
I tried to rewrite the cookie after createMiddleware to change the domain option. After adding the cookie of NEXT_LOCALE in ...
1
vote
2
answers
62
views
Cookies (set-cookie header) lost after ~90 seconds of idle when post request is from external source. Express + express-session example
I have experienced very strange behavior of set-cookie header in request.
Tried to deal with some api 3ds calls in payments online system, when need to redirect user in another tab/window and then ...
0
votes
1
answer
34
views
ASP.NET Core 8 website with HAProxy - browsers stopped saving cookies
We have ASP.NET Core 8 websites which output session cookies for user authentication. Everything worked just fine, until a couple of days ago when the cookies stopped being saved in the browser. No ...
1
vote
0
answers
713
views
Setting cookie's domain causes TypeError: option domain is invalid
Follow-up from Express session loses passport user ID on a Safari cookie every week . In Express and NodeJS, I want to set a cookie's domain so user agents see it as a first-party cookie. If I set it ...
1
vote
0
answers
403
views
Authenticating with cookies using requests or curl_cffi in site doesn't work
I'm trying to login into https://store.steampowered.com/ with cookies using curl_cffi in python, but it doesn't work.
I can manually use the cookies to login by using anti detect browsers like "...
1
vote
1
answer
93
views
CORS, transmitting JWT via cookie using HTTPOnly
Problem:
When I send a JWT token via cookies directly to http://localhost:8000/api/profile, it works fine, and I receive user data. However, when I pass the token via a second microservice, I get a ...
0
votes
0
answers
16
views
XSRF token in tornado web ssh
My frontend is on a different domain than the WebSSH server (running on the Tornado framework), and Im encountering an issue with the XSRF token. Since the XSRF token is not delivered through a ...
1
vote
2
answers
231
views
getting cookies from apollo client on next js
I want to get the cookie with my client component, but somehow, it always return undefined or empty string. I am using js-cookie since someone recommend it.
ApolloProviderClient.tsx:
"use client&...
0
votes
0
answers
63
views
Safari does not recognize manually added cookies in the developer console when using iron-session
I am currently developing a PWA using Next.js and iron-session, and I am testing it locally with HTTPS using mkcert. While testing authentication, I encountered an issue specific to Safari.
Issue:
In ...
0
votes
1
answer
51
views
I can't delete a cookie after Stripe success payment in NextJS 14
After payment success via Stripe the user is redirected to this route:
// path: src/app/client/payment/payment-success/page.tsx
'use client';
import React, {useEffect, useState} from 'react';
import ...
1
vote
1
answer
95
views
Express session loses passport user ID on a Safari cookie every week
I've been studying this bug for a while. I have a NodeJS application with cookies when logging in, and the cookies are supposed to last one year. I check the application every day on Google Chrome, ...
3
votes
1
answer
404
views
Why is my FastAPI endpoint not saving an HTTPonly Cookie using Fetch?
The question says it all, I feel like I've read everything I can and I am still no further forwards. The current situation is:
Enter api.mydomain.com into a browser directly does save my cookie
...
0
votes
0
answers
142
views
Set-Cookie header silently ignored by browser, doesn't save cookie
I've seen many variations of this question here, but as far as I can tell, my setup should be working.
I'm working on a Next.js application that's sending a PUT request to our backend, which is ...
0
votes
1
answer
327
views
Cookies not sent in server request of Angular SSR (v18)
I'm here because I'm frustrated and stuck. I have tried different possible solutions but I can't find my mistake...
I'm using native server side rendering of angular (not Angular Material).
The ...