File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- from django .apps import AppConfig
21from corsheaders .signals import check_request_enabled
2+ from django .apps import AppConfig
3+
34
45def cors_allow_origin (sender , request , ** kwargs ):
56 return request .path == "/o/userinfo/" or request .path == "/o/userinfo"
67
8+
79class IDPAppConfig (AppConfig ):
810 name = "idp"
911 default = True
1012
1113 def ready (self ):
12- check_request_enabled .connect (cors_allow_origin )
14+ check_request_enabled .connect (cors_allow_origin )
Original file line number Diff line number Diff line change 188188 "SCOPES" : {
189189 "openid" : "OpenID Connect scope" ,
190190 },
191- ' ALLOWED_SCHEMES' : [' https' , ' http' ],
191+ " ALLOWED_SCHEMES" : [" https" , " http" ],
192192}
193193# needs to be set to allow cors requests from the test app, along with ALLOWED_SCHEMES=["http"]
194194os .environ ["OAUTHLIB_INSECURE_TRANSPORT" ] = "1"
You can’t perform that action at this time.
0 commit comments