Skip to content

Commit

Permalink
CORS success responses should have an empty body
Browse files Browse the repository at this point in the history
  • Loading branch information
kherock committed Mar 21, 2019
1 parent 5bedc96 commit afdadae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = () =>
"Origin, Access-Control-Request-Headers, Access-Control-Request-Method"
);

ctx.status = 200;
ctx.body = "";
} else if (config && matchedRule) {
ctx.set(
"Access-Control-Allow-Origin",
Expand Down

0 comments on commit afdadae

Please sign in to comment.