Skip to content

Commit fdf2b66

Browse files
committed
尝试解决跨域
1 parent 358212a commit fdf2b66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def do_GET(self):
3333
user = path.split('?')[1]
3434
data = getdata(user)
3535
self.send_response(200)
36+
self.send_header('Access-Control-Allow-Origin', '*')
3637
self.send_header('Content-type','application/json')
3738
self.end_headers()
3839
self.wfile.write(json.dumps(data).encode('utf-8'))

0 commit comments

Comments
 (0)