Skip to content

Commit

Permalink
chore: remove cors
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechsimetka authored Apr 10, 2022
1 parent a967803 commit 2e001c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ function runServer() {
const app = new Koa()
app.use(serve('static'))
app.use(async (context, next) => {
context.set('Access-Control-Allow-Origin', `*`)
// context.set('Access-Control-Allow-Origin', `http://localhost:${port.value}`)
context.set('Access-Control-Allow-Origin', `http://localhost:${port.value}`)
context.set('Access-Control-Allow-Credentials', 'true')
context.set(
'Access-Control-Allow-Headers',
Expand Down

0 comments on commit 2e001c6

Please sign in to comment.