Skip to content

Commit

Permalink
tunnel-server: always allow OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Razon committed Sep 6, 2023
1 parent 7b5384e commit 4a82e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnel-server/src/proxy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const proxy = ({

req.url = path ?? '/'

if (activeTunnel.access === 'private') {
if (activeTunnel.access === 'private' && req.method !== 'OPTIONS') {
return {
req: await validatePrivateTunnelRequest(req, activeTunnel, session(activeTunnel.publicKeyThumbprint)),
activeTunnel,
Expand Down

0 comments on commit 4a82e40

Please sign in to comment.