Answers for "using cors with react to access api"

0

set cors for a react node application socket error

// add this on client side
const socket = openSocket('http://localhost:8000', , {transports: ['websocket']});
Posted by: Guest on April-17-2021
0

how do you import cors into component

resonse_object.header("Access-Control-Allow-Origin", "*");
resonse_object.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
Posted by: Guest on October-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language