Ajout de middleware#1

PHOTO EMBED

Sun Sep 05 2021 13:37:03 GMT+0000 (UTC)

Saved by @devdave

app.use((req, res, next) => {
  res.setHeader('Access-Control-Allow-Origin', '*');
  res.setHeader('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content, Accept, Content-Type, Authorization');
  res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, PATCH, OPTIONS');
  next();
});
content_copyCOPY