Skip to content

Commit

Permalink
add cross-site header
Browse files Browse the repository at this point in the history
  • Loading branch information
bigeagle committed May 13, 2016
1 parent b91155d commit a8fca70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gdanmaku/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def jsonResponse(r):
res.headers.add('Access-Control-Allow-Origin', '*')
res.headers.add(
'Access-Control-Allow-Headers',
'Content-Type,X-GDANMAKU-AUTH-KEY,X-GDANMAKU-SUBSCRIBER-ID')
'Content-Type,X-GDANMAKU-AUTH-KEY,'
'X-GDANMAKU-SUBSCRIBER-ID,X-GDANMAKU-TOKEN'
)
res.headers.add('Access-Control-Allow-Methods', 'GET,POST,OPTIONS')
return res

Expand Down

0 comments on commit a8fca70

Please sign in to comment.