Answers for "axios send request with cookies"

CSS
-1

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;
Posted by: Guest on January-12-2021
-1

axios send request with cookies

axios.get('some api url', {withCredentials: true});
Posted by: Guest on May-04-2021

Code answers related to "axios send request with cookies"

Browse Popular Code Answers by Language