Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Commit

Permalink
Add Authorization to CORS Allowed Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dgadelha committed Dec 11, 2019
1 parent 9ff9289 commit c76d500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/typescript_nodeserver.cr
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export function start(port: number = 8000) {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Methods", "PUT, POST, GET, OPTIONS");
res.setHeader("Access-Control-Allow-Headers", "Content-Type");
res.setHeader("Access-Control-Allow-Headers", "Authorization, Content-Type");
res.setHeader("Access-Control-Max-Age", "86400");
res.setHeader("Content-Type", "application/json");
Expand Down

0 comments on commit c76d500

Please sign in to comment.