Skip to content

Commit 42a2c26

Browse files
committed
Add comment
1 parent 9c1404f commit 42a2c26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/stac_auth_proxy/middleware/EnforceAuthMiddleware.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
8585
return await self.app(scope, receive, send)
8686

8787
request = Request(scope)
88+
89+
# Skip authentication for OPTIONS requests, https://fetch.spec.whatwg.org/#cors-protocol-and-credentials
8890
if request.method == "OPTIONS":
8991
return await self.app(scope, receive, send)
9092

0 commit comments

Comments
 (0)