Skip to content

Commit

Permalink
Allow requests from quizzing origin 🤗
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbassy committed Mar 5, 2024
1 parent ba02ea2 commit 75d1d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface Bindings extends Context {
const API = new Router<Bindings>()

API.prepare = CORS.preflight({
origin: /quizzing\.ninja|localhost:3000/,
origin: /quizzing\.ninja|quizzing\.pages\.dev|localhost:3000/,
headers: ['Cache-Control', 'Content-Type', 'X-Count'],
methods: ['GET', 'HEAD', 'PUT', 'POST', 'DELETE'],
})
Expand Down

0 comments on commit 75d1d15

Please sign in to comment.