Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react axios get cookie from response

axios.get('your_url', {withCredentials: true}); //for GET
axios.post('your_url', data, {withCredentials: true}); //for POST
axios.put('your_url', data, {withCredentials: true}); //for PUT
axios.delete('your_url', data, {withCredentials: true}); //for DELETE
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #axios #cookie #response
ADD COMMENT
Topic
Name
6+2 =