Skip to content

Commit 570bcfb

Browse files
authored
fix: Crossing does not take effect (#3561)
1 parent 31f8711 commit 570bcfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/middleware/cross_domain_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def process_request(self, request):
2525
def process_response(self, request, response):
2626
auth = request.META.get('HTTP_AUTHORIZATION')
2727
origin = request.META.get('HTTP_ORIGIN')
28-
if auth is not None and str(auth).startswith("application-") and origin is not None:
28+
if auth is not None and str(auth).startswith("Bearer application-") and origin is not None:
2929
application_api_key = get_application_api_key(str(auth), True)
3030
cross_domain_list = application_api_key.get('cross_domain_list', [])
3131
allow_cross_domain = application_api_key.get('allow_cross_domain', False)

0 commit comments

Comments
 (0)