Skip to content

Commit

Permalink
fix(access-api): cors on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Sep 9, 2022
1 parent 6677b47 commit bb8e916
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/access-api/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ addEventListener('fetch', (event) => {
return env.log.end(corsHeaders(event.request, rsp))
})
.catch((error) => {
return env.log.end(errorHandler(error, env.log))
return env.log.end(
corsHeaders(event.request, errorHandler(error, env.log))
)
})
)
})

0 comments on commit bb8e916

Please sign in to comment.