Answers for "axios.defaults.withcredentials = true"

3

axios.defaults.withcredentials = true

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

app.use(cors(corsConfig));
app.options('*', cors(corsConfig));
Posted by: Guest on August-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language