Skip to content

Instantly share code, notes, and snippets.

@aishek
Created February 9, 2015 15:04
Show Gist options
  • Save aishek/692ec6c4e28cd55fcbe4 to your computer and use it in GitHub Desktop.
Save aishek/692ec6c4e28cd55fcbe4 to your computer and use it in GitHub Desktop.
Yandex.Metrika webvisor RoR 4 fix
# config/environments/production.rb
MyRails4::Application.configure do
# ...
config.action_dispatch.default_headers = {
'X-XSS-Protection' => '1; mode=block',
'X-Content-Type-Options' => 'nosniff'
}
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment