Default headers - Rails

config.**action_dispatch**.**default_headers** **=** {
  'X-Frame-Options' **=>** 'SAMEORIGIN',
  'X-XSS-Protection' **=>** '1; mode=block',
  'X-Content-Type-Options' **=>** 'nosniff',
  'X-Download-Options' **=>** 'noopen',
  'X-Permitted-Cross-Domain-Policies' **=>** 'none',
  'Referrer-Policy' **=>** 'strict-origin-when-cross-origin'
}

You can configure default headers in config/application.rb.

config.**action_dispatch**.**default_headers** **=** {
  'Header-Name' **=>** 'Header-Value',
  'X-Frame-Options' **=>** 'DENY'
}

Or you can remove them.

config.**action_dispatch**.**default_headers**.**clear**

Here is a list of common headers: