Skip to content

Commit a8fca70

Browse files
committed
add cross-site header
1 parent b91155d commit a8fca70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gdanmaku/api.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def jsonResponse(r):
1212
res.headers.add('Access-Control-Allow-Origin', '*')
1313
res.headers.add(
1414
'Access-Control-Allow-Headers',
15-
'Content-Type,X-GDANMAKU-AUTH-KEY,X-GDANMAKU-SUBSCRIBER-ID')
15+
'Content-Type,X-GDANMAKU-AUTH-KEY,'
16+
'X-GDANMAKU-SUBSCRIBER-ID,X-GDANMAKU-TOKEN'
17+
)
1618
res.headers.add('Access-Control-Allow-Methods', 'GET,POST,OPTIONS')
1719
return res
1820

0 commit comments

Comments
 (0)