cookies

res.clearCookie function doesn't delete cookies

三世轮回 提交于 2021-01-27 05:52:53
问题 I am creating an authorization system for my express (with typescript) application and I use JWT and save them into cookies to keep the user logged in. I have a problem with the logout part and res.clearCookie() doesn't delete cookies. I have used cookie-parser in the index file and I have tried resetting the cookie with an empty value or expiration date of now but it doesn't work for me. As I stated above res.clearCookie("jwt") doesnt work either. All dependencies are up-to-date. Login and

Postman is not using cookie

£可爱£侵袭症+ 提交于 2021-01-26 19:31:34
问题 I've been using Postman in my app development for some time and never had any issues. I typically use it with Google Chrome while I debug my ASP.NET API code. About a month or so ago, I started having problems where Postman doesn't seem to send the cookie my site issued. Through Fiddler, I inspect the call I'm making to my API and see that Postman is NOT sending the cookie issued by my API app. It's sending other cookies but not the one it is supposed to send -- see below: Under "Cookies", I

Postman is not using cookie

只愿长相守 提交于 2021-01-26 19:30:39
问题 I've been using Postman in my app development for some time and never had any issues. I typically use it with Google Chrome while I debug my ASP.NET API code. About a month or so ago, I started having problems where Postman doesn't seem to send the cookie my site issued. Through Fiddler, I inspect the call I'm making to my API and see that Postman is NOT sending the cookie issued by my API app. It's sending other cookies but not the one it is supposed to send -- see below: Under "Cookies", I

Postman is not using cookie

前提是你 提交于 2021-01-26 19:27:57
问题 I've been using Postman in my app development for some time and never had any issues. I typically use it with Google Chrome while I debug my ASP.NET API code. About a month or so ago, I started having problems where Postman doesn't seem to send the cookie my site issued. Through Fiddler, I inspect the call I'm making to my API and see that Postman is NOT sending the cookie issued by my API app. It's sending other cookies but not the one it is supposed to send -- see below: Under "Cookies", I

Disabling cookies in WKWebView

萝らか妹 提交于 2021-01-24 07:27:01
问题 Is it possible at all to disable cookies and local storage in a WKWebView? Let's say that this is my setup, and I want to add something that disables them: import UIKit import WebKit class ViewController: UIViewController, WKUIDelegate { var webView: WKWebView! override func loadView() { let webConfiguration = WKWebViewConfiguration() webView = WKWebView(frame: .zero, configuration: webConfiguration) webView.uiDelegate = self view = webView } override func viewDidLoad() { super.viewDidLoad()

Disabling cookies in WKWebView

南笙酒味 提交于 2021-01-24 07:26:36
问题 Is it possible at all to disable cookies and local storage in a WKWebView? Let's say that this is my setup, and I want to add something that disables them: import UIKit import WebKit class ViewController: UIViewController, WKUIDelegate { var webView: WKWebView! override func loadView() { let webConfiguration = WKWebViewConfiguration() webView = WKWebView(frame: .zero, configuration: webConfiguration) webView.uiDelegate = self view = webView } override func viewDidLoad() { super.viewDidLoad()

Disabling cookies in WKWebView

本秂侑毒 提交于 2021-01-24 07:25:55
问题 Is it possible at all to disable cookies and local storage in a WKWebView? Let's say that this is my setup, and I want to add something that disables them: import UIKit import WebKit class ViewController: UIViewController, WKUIDelegate { var webView: WKWebView! override func loadView() { let webConfiguration = WKWebViewConfiguration() webView = WKWebView(frame: .zero, configuration: webConfiguration) webView.uiDelegate = self view = webView } override func viewDidLoad() { super.viewDidLoad()

Safari 13+ iframe blocks CORS cookies

那年仲夏 提交于 2021-01-21 12:20:23
问题 Safari flat out doesn't let you set cookies in iframes of domains different than the parent domain, server-side CORS headers be damned. To clarify: user is on domainA.com. An iframe for domainB.com is open, and attempts to authenticate the user on domainB.com inside the iframe. Set-Cookie header is returned from the server inside the domainB.com iframe, with all the required headers, but Safari isn't sending it back in subsequent calls. An old workaround was doing a form submit from the

Safari 13+ iframe blocks CORS cookies

爱⌒轻易说出口 提交于 2021-01-21 12:19:07
问题 Safari flat out doesn't let you set cookies in iframes of domains different than the parent domain, server-side CORS headers be damned. To clarify: user is on domainA.com. An iframe for domainB.com is open, and attempts to authenticate the user on domainB.com inside the iframe. Set-Cookie header is returned from the server inside the domainB.com iframe, with all the required headers, but Safari isn't sending it back in subsequent calls. An old workaround was doing a form submit from the

Flask – multiple session cookies with the same name

青春壹個敷衍的年華 提交于 2021-01-21 04:23:43
问题 I have found a very strange problem in my Flask application. I discovered that in some circumstances multiple session cookies could be created with the same name. I attached a picture about it. It is not browser specific. It is strange itself, but the real problem comes when I try to validate a form with CSRF token. Unfortunately, Flask picks a wrong session cookie and the validation of the CSRF token cannot be successful. And even more strangely the problem persists even after multiple form