Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Jan 11, 2025
1 parent 586d7d6 commit f413c8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions robyn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@ def ALLOW_CORS(app: Robyn, origins: Union[List[str], str]):

@app.before_request()
def cors_middleware(request):
if request is None:
return None

origin = request.headers.get("Origin")

# If specific origins are set, validate the request origin
Expand Down

0 comments on commit f413c8c

Please sign in to comment.