Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- response.cookie("token",token,{
- encode:String,
- domain:".example.com",
- expires: new Date(Date.now()+86400000000),
- secure:false}
- )
- fetch("/login", {
- credentials: "include", // also tried "same-origin"
- mode:"cors", // also tried omitting
- headers:new Headers( {
- // authentication data is here
- })
- })
Add Comment
Please, Sign In to add comment