Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 11, 2020 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/01d52f5fa07d0c9985dc8259f0a1b15a to your computer and use it in GitHub Desktop.
Save parzibyte/01d52f5fa07d0c9985dc8259f0a1b15a to your computer and use it in GitHub Desktop.
app.use((req, res, next) => {
res.set("Access-Control-Allow-Credentials", "true");
res.set("Access-Control-Allow-Origin", DOMINIO_PERMITIDO_CORS);
res.set("Access-Control-Allow-Headers", "Content-Type");
res.set("Access-Control-Allow-Methods", "DELETE");
next();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment