1,218 questions
0
votes
1
answer
22
views
Cookie is working on localhost but not working on live says cookieToken undefined
Cookie is setting on browser successfully but can't retrieve it. working fine on localhost but facing issues on live links. cookie token says undefined. here is the code -
// Function to get a cookie ...
0
votes
0
answers
14
views
How to solve this problem in Google Oauth redirect API couldn't Set-Cookie header on frontend origin using Warp in Rust
I'm developing an API using Warp in Rust and a ReactJS frontend. The user clicks the "Continue with Google" button, triggering the Google OAuth flow. After successful Google authentication, ...
0
votes
0
answers
17
views
Nodejs Cookie is set to empty value
I am using nodejs for backend, the backend is hosted on renderon and the frontend is hosted on netlify.
I am trying to set the cookie in this way
res.cookie("spare_auth_token", token, {
...
1
vote
1
answer
223
views
How to use ngx-cookie-service-ssr in Angular 19 with SSR
I'm trying to setup ngx-cookie-service-ssr for my project. However, in the set up description,
It's mentioned that I have to replace this code in the server.ts
server.get('*', (req, res) => {
res....
0
votes
0
answers
49
views
how to avoid ( using pure javascript) setting cookies which are set by response headers set-cookie
I have a html page, to which I would like to insert a .html template which is stored in a separate file. I have done it like this:
index.html:
<html>
<body>
<script src="js/...
0
votes
0
answers
12
views
Cookie not displaying on Server (Frontend)
I've tried everything to try to get the cookie to display on the frontend (inspect -> application -> cookies) but it just doesn't show up. Although the frontend & backend are on different ...
0
votes
0
answers
15
views
I can't set cookies on iOS
1
With a web server build with Node.js and Express.js I'm attaching the cookies at the response.
res.cookie('access_token', token, {
httpOnly: true,
secure: true,
sameSite:'...
0
votes
0
answers
25
views
Handling HTTP-Only Tokens in NestJS with Custom Guards
Issue with Setting Decrypted Token in Nest.JS Auth Guard
I am facing an issue in my Nest.JS application when handling HTTP-only tokens. I retrieve an encrypted token from the cookies, decrypt it, and ...
0
votes
1
answer
44
views
Set Cookie Recived from Server.com to Client.com application cookie
so
i have my backend java hosted on render
i have my frontend react js hosted on firebase
actual hosted URL's
Render : https://back-i2pj.onrender.com
Firebase : https://valyrian.web.app
now i'm ...
0
votes
0
answers
43
views
Managing Django CSRF Protection Flow Between Django and Vue
I'm using Django Rest Framework. In my login_view I created a csrf token and set it as cookie.
I examined the login response and I can see it is properly set as Set-Header token. Let me summarize my ...
1
vote
0
answers
30
views
How to delete all cookies in Ubuntu VPS server by force created by PHP setcookie function?
Consider the following codes I collect from the libs/login.php file of Kahuk CMS:
function SetIDCookie($what, $remember) {
global $db;
$domain = preg_replace('/^www/','',$_SERVER['...
0
votes
1
answer
39
views
Unable to get Cookie value when Jotform redirects user to another page
I have a condition that when a user shares his referral link then it sets a Cookie in the browser so that if GET value is removed from URL even then I can get referral.
I have checked in developers ...
0
votes
0
answers
26
views
How cookie domain and section is determined
I am trying to understand about cookies in depth .
When I visit any page , for reference when I visited youtube , I gets following cookie .
I have two queries highlighted in different colors
Yellow ...
0
votes
0
answers
13
views
Sveltekit + Socket.io + set-cookies
How do you guys set cookies in Sveltekit, if socket.io token is expired? Is it even possible?
The official approach with +page.server.ts won't work in this case for obvious reasons. But a scenario ...
0
votes
0
answers
50
views
How to Set Cookies in GraphQL Rust WARP
Now I'm writing an authentication code using Rust WARP with the GraphQL API.
In the below code, I'm running, but I don't know how to set the cookie in the browser.
Here, this GraphQL code is working ...