Skip to content

Commit

Permalink
Merge pull request #163 from hexlet-basics/webvisor
Browse files Browse the repository at this point in the history
setup headers for webvisor
  • Loading branch information
mokevnin committed Jun 2, 2021
2 parents 9cc146f + 2f0fb9e commit cfd050c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ class Application < Rails::Application

routes.default_url_options[:host] = "#{configus.protocol}://#{configus.host}"

# https://edgeguides.rubyonrails.org/configuring.html#configuring-action-dispatch
config.action_dispatch.default_headers = config.action_dispatch.default_headers.merge(
# https://yandex.ru/support/metrica/behavior/click-map.html#iframe
'X-FRAME-OPTIONS' => 'ALLOW-FROM http://webvisor.com'
)

Rails.autoloaders.main.ignore(Rails.root.join('app/packs/*'))
end
end

0 comments on commit cfd050c

Please sign in to comment.