Skip to content

Commit

Permalink
Send CORS headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cemrich committed Jul 9, 2024
1 parent f0d9345 commit da9f542
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const app = express();

app.use((_, res, next) => {
res.setHeader("Version", version);

res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");

next();
});

Expand Down

0 comments on commit da9f542

Please sign in to comment.