forked from somoza/discourse-xorigin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.rb
More file actions
10 lines (9 loc) · 707 Bytes
/
Copy pathplugin.rb
File metadata and controls
10 lines (9 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
# name: discourse-xorigin-hackmd
# about: Set site headers
# version: 1.2
# authors: Julian and Virgil Griffith
# url: https://github.com/ethresearch/discourse-xorigin
Rails.application.config.action_dispatch.default_headers.merge!({'X-Frame-Options' => 'allow-from https://notes.ethereum.org'})
Rails.application.config.action_dispatch.default_headers.merge!({'Access-Control-Allow-Origin' => 'https://notes.ethereum.org'})
Rails.application.config.action_dispatch.default_headers.merge!({'Access-Control-Allow-Methods' => 'GET, POST, OPTIONS, DELETE'})
Rails.application.config.action_dispatch.default_headers.merge!({'Access-Control-Allow-Headers' => 'Content-Type, Authorization, X-Requested-With'})