Linked Questions
23 questions linked to/from Chrome localhost cookie not being set
310 votes
26 answers
481k views
Cookies on localhost with explicit domain
I must be missing some basic thing about cookies. On localhost, when I set a cookie on server side and specify the domain explicitly as localhost (or .localhost). the cookie does not seem to be ...
517 votes
9 answers
205k views
Are HTTP cookies port specific?
I have two HTTP services running on one machine. I just want to know if they share their cookies or whether the browser distinguishes between the two server sockets.
74 votes
1 answer
71k views
set withCredentials to the new ES6 built-in HTTP request API : Fetch
How to set withCredentials=true to fetch which return promise. Is the following correct : fetch(url,{ method:'post', headers, withCredentials: true }); I think the MDN documentation talked ...
17 votes
4 answers
29k views
Chrome doesn't create cookie for domain=localhost in broken https
I have application on my localhost in https. But the certification on localhost is broken. Below, response header. Problem: MyCookie is not created: MyCookie=MyValue;Path=/;Domain=localhost;Secure; ...
23 votes
3 answers
17k views
ASP.net core auth cookie not being set in Google Chrome when running in dev
I have three applications in my solution, all built in asp.net core 1 MVC 6. App 1 is an MVC app used for authenticating a user. App 2 is an Angular SPA app and is the main app in the solution. ...
12 votes
3 answers
33k views
Spring Security keeps redirecting me to login page
What ever link I type in the address bar it keeps redirecting me to the login page. How can I prevent that? For example if i add http://localhost:8080/asdasdsa > it will redirect me to http://...
15 votes
1 answer
83k views
Spring Boot: RequestRejectedException: The request was rejected because the URL contained a potentially malicious String ";"
I get the following exception when I POST the login credentials for my Spring Boot app. org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL ...
12 votes
3 answers
16k views
localhost cookies not set
I'm trying to set a cookie in my application. Here's the code that sets the cookie: public HttpResponseMessage LogIn(UserLoginVM user) { // Do login stuff var cookie = new CookieHeaderValue(...
7 votes
4 answers
9k views
ASP.NET Core 2.0 Authentication Cookie not set
I followed this article (https://learn.microsoft.com/en-us/aspnet/core/security/authentication/cookie?tabs=aspnetcore2x) of Microsoft to migrate my Authentication Procedure in my .NET Core 2.0 MVC ...
1 vote
1 answer
4k views
Not able to set cookie from action
I have ASP.NET MVC application hosted along with ASP.NET WebApi application at localhost and localhost/api and I wan't to set a cookie when one action of ASP.NET WebApi called. I tried to set my ...
2 votes
4 answers
14k views
How to set cookies in localhost - ReactJS
I know there are already a lot of questions similar to this but I couldn't find a solution yet. I managed to deploy my React app on a server, and cookies work fine. Cookie is set by the server with ...
5 votes
1 answer
9k views
JSESSIONID changes on request in chrome
I have a weblogic 10.3.5 web app in which JSESSIONID is changing everytime the page is refreshed.This is causing the my application's context to be lost. This only happens on Chrome and Safari, ...
4 votes
2 answers
7k views
How to see cookies with Google Chrome Inspector?
I am using Google Chrome Web Inspector to debug a web page. In tab network, I am able to see a call to a Server API and detect Request Cookies and Response Cookies for that URL, os I suppose a ...
4 votes
1 answer
4k views
Cookie created in WebAPI response is never sent in subsequent client requests. Seeking example with round trip Server->Client->Server
I am using ASP.Net Core 2 WepAPI controller. Current version of Chrome(currently 64). Angular 5 SPA. Need to work on localhost. This is controller method: public class TestController : ...
1 vote
2 answers
4k views
I'm unable to set cookies for ChromeDriver running in headless mode
When I run my selenium tests using ChromeDriver in headless mode addCookie method calls cause exception; the tests all work in normal mode My Chrome Browser version is 75.0.3770.90 and ChromeDriver ...