Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios.defaults.withcredentials = true

const corsConfig = {
  origin: true,
  credentials: true,
};

app.use(cors(corsConfig));
app.options('*', cors(corsConfig));
Source by github.com #
 
PREVIOUS NEXT
Tagged: #true
ADD COMMENT
Topic
Name
5+4 =