Skip to content

Commit

Permalink
Merge pull request transloadit#1754 from transloadit/allowed-http-met…
Browse files Browse the repository at this point in the history
…hods

companion: set allowed http methods internally
  • Loading branch information
ifedapoolarewaju authored Jul 29, 2019
2 parents d565323 + c97b8a7 commit 681f1d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/companion.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports.app = (options = {}) => {
app.use(interceptGrantErrorResponse)
app.use(new Grant(grantConfig))
app.use((req, res, next) => {
res.header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, DELETE')
res.header(
'Access-Control-Allow-Headers',
[
Expand Down

0 comments on commit 681f1d3

Please sign in to comment.