Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios httponly cookie

server: 
res.setHeader('Access-Control-Allow-Origin', 'http://localhost:3000');
res.setHeader('Access-Control-Allow-Credentials',true);

client(axios):
axios.defaults.withCredentials = true;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #axios #httponly #cookie
ADD COMMENT
Topic
Name
6+6 =