Guest User

Untitled

a guest
Jul 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. response.cookie("token",token,{
  2. encode:String,
  3. domain:".example.com",
  4. expires: new Date(Date.now()+86400000000),
  5. secure:false}
  6. )
  7.  
  8. fetch("/login", {
  9. credentials: "include", // also tried "same-origin"
  10. mode:"cors", // also tried omitting
  11. headers:new Headers( {
  12. // authentication data is here
  13. })
  14. })
Add Comment
Please, Sign In to add comment