Skip to content

Commit

Permalink
Fix deprecation warning when using new middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Dec 6, 2023
1 parent 09b56ad commit 74de369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openforms/utils/redirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def allow_redirect_url(url: str) -> bool:
if allowed_hosts_check:
return True

cors = CorsMiddleware()
cors = CorsMiddleware(get_response="not_relevant") # type: ignore
origin = origin_from_url(url)
parts = urlparse(url)

Expand Down

0 comments on commit 74de369

Please sign in to comment.