Skip to content

Commit

Permalink
remove access control headers
Browse files Browse the repository at this point in the history
  • Loading branch information
stutrek committed Jun 1, 2019
1 parent 239a976 commit 3ace166
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/gatsby/src/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,7 @@ module.exports = async program => {
}
return next()
})
app.use(function(req, res, next) {
res.header(`Access-Control-Allow-Origin`, `http://${host}:${port}`)
res.header(`Access-Control-Allow-Credentials`, true)
res.header(
`Access-Control-Allow-Headers`,
`Origin, X-Requested-With, Content-Type, Accept`
)
next()
})

app.use(pathPrefix, router)

const startListening = () => {
Expand Down

0 comments on commit 3ace166

Please sign in to comment.