Skip to content

Commit

Permalink
Merge pull request #3665 from open-formulieren/middleware-dep
Browse files Browse the repository at this point in the history
Fix deprecation warning when using new middlewares
  • Loading branch information
sergei-maertens authored Dec 7, 2023
2 parents e5a84c3 + 74de369 commit 8002396
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 8002396

Please sign in to comment.