Skip to content

Commit 29f384e

Browse files
committed
fix: cors on .well-know redirect in test app
1 parent 5e48ee8 commit 29f384e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/app/idp/idp/apps.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33

44

55
def cors_allow_origin(sender, request, **kwargs):
6-
return request.path == "/o/userinfo/" or request.path == "/o/userinfo"
6+
return (
7+
request.path == "/o/userinfo/"
8+
or request.path == "/o/userinfo"
9+
or request.path == "/o/.well-known/openid-configuration"
10+
or request.path == "/o/.well-known/openid-configuration/"
11+
)
712

813

914
class IDPAppConfig(AppConfig):

0 commit comments

Comments
 (0)