We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33bdffe commit 8b587fcCopy full SHA for 8b587fc
teach/learning.py
@@ -83,7 +83,7 @@ def application(environ, start_response):
83
code = qs['code'][0]
84
headers = [('Content-Type', 'application/json')]
85
origin = environ.get('HTTP_ORIGIN', '')
86
- if origin.find('www.liaoxuefeng.com') == -1:
+ if origin.find('.liaoxuefeng.com') == -1:
87
start_response('400 Bad Request', [('Content-Type', 'application/json')])
88
return [b'{"error":"invalid_origin"}']
89
headers.append(('Access-Control-Allow-Origin', origin))
0 commit comments