[Web]This Set-Cookie was blocked because it had the “Secure“ attribute

tags: operation and maintenance  set-cookie  Secure

1. Problem recurrence

The WeChat developer tool cannot set the cookie, and the following error occurs:

This Set-Cookie was blocked because it had the "Secure" attribute but was not received over a secure connection. 

   

Google Chrome cannot set cookies, and the following error occurs:

This attempt to set a cookie via a Set-Cookie header was blocked because it had the "Secure" attribute but was not received over a secure connection. 

2. Solution:

Remove the secure of Nginx server location proxy_cookie_path

 

 

Intelligent Recommendation

Web Project: Session Cookie missing HttpOnly property and secure property

When the session Cookie does not contain HttpOnly property and secure property, malicious script injection site may access this Cookie, and steal its value. Any information stored in the session token...

Go Web Programming--How to ensure the secure transmission of cookie data

What is cookie Cookie(Also known asWeb CookieOr browserCookie) Is a small piece of data sent by the server to the user's browser and saved locally. It will be carried and sent to the server when the b...

Security issue - Cookie is not set HttpOnly &&Cookie does not set Secure ID

Ali machine test system vulnerability (too lazy to type, give a screenshot of the report part): problem solved: Filter it and it will do. CookieFilter.java web.xml Solve the results: Here is a screens...

Set the SameSite attribute of Cookie in Springboot application

Cookieapart fromkeywithvalueThere are several properties outside. httpOnly Whether to allow js to read cookies secure Whether to submit cookies only under https link domain The domain of the cookie su...

Chrom backend setting cookie failed cross-domain issue error the set-cookie had to have been set with "sameSite=None" to enable cross-si

After the vue project runs and logs in, the back-end sets cookies; but I am a local project, so I keep reporting the problem of login expiration; 1.Yellow warning error for set-cookie set by the backe...

More Recommendation

secure cookie with hash!

When we use cookies, we can usecookie value | hash_value of the cookieTo set the cookie value. When the client doesn't know our hash algorithm, the client can change the cookie value but can't get the...

cookie Secure httpOnly attributes

Session cookie and persistent cookie difference If you do not set an expiration time, the statement indicates that the cookie period during a browsing session, simply close the browser, cookie will di...

Springmvc cookie Settings Secure

Springmvc cookie Settings Secure SECURE Set to True then Cookies can only be sent to the server with the HTTPS protocol. Create new Filter to add Secure. Override DOFILTER method Web.xml Set Filter in...

Analysis of the Secure of Cookie

Secure determines whether the cookies can be set through the URL of the HTTP protocol PHP sets cookies through SetCookie. The specific parameters are as follows HTTP protocol URL:http://www.test.com/t...

ID4 error The cookie ‘.aspnetcore.correlation has set‘ samesite = none ‘and must also set‘ secure ’

After the ASP.NET CORE MVC project is connected to the IdentityServer4 server login, it stays on http: // localhost: 5001/connect/authorize? Client_id, which cannot be successful. The client ASP.NET C...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top