Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Nov 26, 2024
1 parent 29c4dad commit 73448d7
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 @@ -635,6 +635,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 73448d7

Please sign in to comment.