Skip to content

Commit

Permalink
Fix CORS preflight
Browse files Browse the repository at this point in the history
Signed-off-by: Ashcon Partovi <ashcon@partovi.net>
  • Loading branch information
Electroid committed Nov 7, 2020
1 parent c2ca439 commit cebd1b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/bundleV2.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ route = (request) ->
if base == "mojang" && arg?
if version == "v2"
if request.method == "OPTIONS"
cors
cors()
else
v2(method, arg)
else
Expand Down

0 comments on commit cebd1b1

Please sign in to comment.