1,207 questions
0
votes
1
answer
212
views
Cookie doesn't getting saved in Nextjs using cookies-next
I'm currently trying to set a cookie with key 'token' as:
import { setCookie } from "cookies-next";
export const setToken = (token = '') => {
setCookie("token", token, { ...
1
vote
1
answer
1k
views
Rewrite Domain in Set-Cookie in Nextjs dev server
We use CORS + SameSite to prevent CSRF attack on the server side & Next.js build a static site with Apache mod_proxy, the Domain component is handled by Apache's ProxyPassReverseCookieDomain ...
4
votes
1
answer
629
views
looking for a demo of CHIPS cookie in action
Chrome is planning to restrict support for 3rd party cookies further starting in 2024.
https://developers.google.com/privacy-sandbox/blog/cookie-countdown-2023oct
this means we need to use the CHIPS ...
0
votes
1
answer
58
views
PHP Cookie doesn't exist even before actually deleting it in Brave [duplicate]
First I am setting a new cookie with PHP and checking whether it exists or not. After that I am deleting it by setting the expiry date to the past and checking again whether it was successful or not.
...
0
votes
0
answers
62
views
Not all cookie saved from one page
I have a long text that needs to be saved in cookies. I break it down by the number of characters and try to save it into cookies cyclically, but only the last one is saved. Below is an example of ...
0
votes
0
answers
510
views
Sending multiple Set-Cookie headers with AWS Lambda and AWS API Gateway not working
I'm trying to send multiple Set-Cookie headers via a AWS Lambda Function integrated with an HTTP API from API Gateway but I cant manage to do that in a non-trash way.
https://docs.aws.amazon.com/...
1
vote
1
answer
73
views
Issue in storing cookies in the browers NEXTjs , Redux RTK query
I'm working on a project using Django for the backend. I'm getting the XCRF token through API cookies, as shown in the Postman image below.
I'm getting access through redux rtk query, also shown ...
0
votes
1
answer
685
views
Set-Cookie response header doesn't set a cookie (GTM server-side implementation)
I'm trying to set a cookie with the response from my server-side GTM container.
My setup:
Custom HTML tag on client-side GTM:
<script>
fetch('{{sst address}}', {
method: 'POST',
...
1
vote
1
answer
564
views
Understanding the concept and existence of third-party client-side cookies
I have been researching types of cookies and have a question regarding client-side cookies. I understand that cookies created via JavaScript are tied to the domain they are created on, and are ...
0
votes
0
answers
32
views
Set up cookies from one domain to another domain
There are multiple questions and answers regarding set up of cookies of one domain from another domain. I know it is not secure to implement. I have gone through multiple SO questions but do not find ...
0
votes
0
answers
88
views
Why doesn't my Web API set any cookies in browser, even though they are in repsonse from the API?
I have Web API built on ASP.Net Core, using JWT Authentication. My current problem is that I had an unsafe way of sendnig to and savind on the client Refresh Token. Now I'm gtrying to make My API to ...
1
vote
0
answers
930
views
Cookie not being set in POST request, but works in HEAD request (identical code)
I'm facing a peculiar issue where the browser (I've tried both Chrome and Mozilla Firefox) doesn't seem to set a cookie from a POST response, even though the Set-Cookie header is present in the ...
0
votes
2
answers
1k
views
Protocol error (Network.deleteCookies): Invalid parameters Failed to deserialize params.name - BINDINGS: mandatory field missing at position X
Hello i'm trying to set some cookies for puppeteer so i don't have to login each time i launch my app. But i can't set it for some stupid reason, it just throws at me the same error no matter what i ...
0
votes
0
answers
1k
views
How to set secure flag for cookies in wordpress site
how can i set secure flag for all cookies on my wordpress site?
cookies
I add this in wp_config.php but its do nothing
@ini_set('session.cookie_httponly', true);
@ini_set('session.cookie_secure', true)...
0
votes
1
answer
111
views
Wordpress Cookie sharing issue with different IPs
I am facing some issues while sharing the cookie between wordpress and reactjs application.
The following are the example IPs for frontend and wordpress:
Frontend server IP address : https://165.23....
0
votes
1
answer
32
views
Transferring cookies to subdomain located in different Server using PHP
How can we pass on cookies to the subdomain if it's on a different server?
Basically, the main domain is on siteground while the subdomain is on softr.io.
I'm using it for the authentication, so when ...
0
votes
0
answers
673
views
Browser ignores cookies received when using Axios/fetch, but when backend serves HTML it accepts them?
I am putting together a simple website but found that the browsers refuse to save any cookies my server sends them. Under what conditions might a browser reject the Set-Cookie header from a server? ...
0
votes
1
answer
799
views
Cookie is not working while redirecting in .NET 7
I need set cookie to redirect request but it's not working.. Everywhere everybody setting the cookie to Response property to Cookies but when I do it same so it's not working..
My Code:
var ...
4
votes
1
answer
1k
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 ...
-1
votes
1
answer
662
views
How to add cookies given by API
the API for login provides userId,name and sessionId (for Cookies) when parameters are given in JSON body. here is the example code via POSTMAN
var myHeaders = new Headers();
myHeaders.append(&...
1
vote
0
answers
205
views
Set cookie in one Google (golang) cloud function, redirect to a second Google (golang) cloud function and access the cookie
Below is sample Go code for two Google cloud functions.
Each function is in a different project.
I want to set a cookie in the first function (myfunction1), redirect to the second function (...
3
votes
0
answers
1k
views
HttpClient - unable to get cookie from response
In API, I use HttpClient to send request to another API. I need to use cookies in subsequent requests. Subsequent request should use the cookie set in the previous response.
But in response there is ...
0
votes
0
answers
88
views
In a CSRF Protection in token-based authentication in mern stack, How to retrieve value from HttpOnly cookie?
I am implementing a csrf protection in token based authentication in mern stack using Double Submit Cookie approach.
Here, I am generating access token named as token, refresh token, and csrf token. ...
0
votes
2
answers
2k
views
Cookies not set at the frontend,
My cookies is being passed from the backend to the frontend and its also available at the Set-Cookie in the headers tab on the console, but with that, the cookies is not appearing at the frontend in ...
1
vote
0
answers
321
views
Is there a way to ask permission to a browser, with restricted cookies policy, to accept the cookies of my app?
I implemented a session with a secure cookie from the server. But on my employer's PC it's not stored.
I maganed to reproduce this behavior denying cookies on my browser. Is there a way, API, to ask ...