Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Cookies from "universal-cookie";
- const cookies = new Cookies();
- cookies.set("token", token, {
- expires: 7, // 7 days
- path: "/"
- //,secure: true // If served over HTTPS
- });
- fetch("http://192.168.0.115:3000/myTransactions/", {
- credentials: "same-origin",
- method: "POST",
- headers: {
- Accept: "application/json",
- "Content-Type": "application/json"
- }
- })
Add Comment
Please, Sign In to add comment