Linked Questions

310 votes
26 answers
481k views

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 ...
Jan Zich's user avatar
  • 15.4k
517 votes
9 answers
205k views

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.
guerda's user avatar
  • 24.2k
74 votes
1 answer
71k views

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 ...
Abdennour TOUMI's user avatar
17 votes
4 answers
29k views

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; ...
lukastymo's user avatar
  • 27k
23 votes
3 answers
17k views

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. ...
Rob's user avatar
  • 7,327
12 votes
3 answers
33k views

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://...
john's user avatar
  • 834
15 votes
1 answer
83k views

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 ...
Chloe's user avatar
  • 26.5k
12 votes
3 answers
16k views

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(...
Gaui's user avatar
  • 9,009
7 votes
4 answers
9k views

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 ...
Bluesight's user avatar
  • 764
1 vote
1 answer
4k views

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 ...
Vladimirs's user avatar
  • 8,659
2 votes
4 answers
14k views

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 ...
Deffo's user avatar
  • 215
5 votes
1 answer
9k views

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, ...
Gustavo Reyes's user avatar
4 votes
2 answers
7k views

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 ...
GibboK's user avatar
  • 74.3k
4 votes
1 answer
4k views

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 : ...
ttugates's user avatar
  • 6,362
1 vote
2 answers
4k views

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 ...
Sha Tao's user avatar
  • 21

15 30 50 per page