Skip to content

Commit

Permalink
fix: cors on .well-know redirect in test app
Browse files Browse the repository at this point in the history
(cherry picked from commit a592988)
  • Loading branch information
dopry committed Nov 10, 2023
1 parent 4f59b06 commit 2ea8222
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/app/idp/idp/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@


def cors_allow_origin(sender, request, **kwargs):
return request.path == "/o/userinfo/" or request.path == "/o/userinfo"
return (
request.path == "/o/userinfo/"
or request.path == "/o/userinfo"
or request.path == "/o/.well-known/openid-configuration"
or request.path == "/o/.well-known/openid-configuration/"
)


class IDPAppConfig(AppConfig):
Expand Down

0 comments on commit 2ea8222

Please sign in to comment.