Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84db759

Browse filesBrowse files
committed
Add "Origin" to header
https://qiita.com/poppo95/items/df40495a02f4a60cfbd7 Though I think this has nothing to do with status code 403...
1 parent 68a0ff5 commit 84db759
Copy full SHA for 84db759

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎lib/qiita.rb

Copy file name to clipboardExpand all lines: lib/qiita.rb
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def request_params
6060
request.headers['Authorization'] = "Bearer #{ENV['QIITA_ACCESS_TOKEN']}"
6161
request.headers['Content-Type'] = 'application/json'
6262
request.headers['User-Agent'] = 'GitHub to Qiita'
63+
request.headers['Origin'] = API_BASE_URL
6364
request.body = request_body
6465
end
6566
end

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.