Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

express - Postman native app does not being saved cookie even through Set-Cookie header is exited from localhost

I am testing to store cookie for an api using express to postman native app.

I found Set-cookie in header is correctly set from a post request.

cookie=cookieValue; Path=/; Expires=Tue, 26 Jan 2021 17:27:40 GMT; HttpOnly

however could not store cookie to the browser.

I have tried to set domain as localhost, 127.0.0.1, localhost:4000, 127.0.01:4000.

I have installed interceptor chrome extension and it captured caches on github.com.

So I am thinking the cookie is not being saved due to my api is from localhost.

If you have any idea for storing cookie from localhost server on postman please let me know.

question from:https://stackoverflow.com/questions/65889801/postman-native-app-does-not-being-saved-cookie-even-through-set-cookie-header-is

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...