mirror of
https://github.com/kingomarnajjar/codespaces-rails.git
synced 2026-07-26 06:37:17 +10:00
Only set X-Frame-Options in dev
This commit is contained in:
parent
2e0bf76f03
commit
39fa818bff
2 changed files with 4 additions and 4 deletions
|
|
@ -11,10 +11,6 @@ module CodespacesTryRails
|
|||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults 7.0
|
||||
|
||||
config.action_dispatch.default_headers = {
|
||||
'X-Frame-Options' => 'ALLOW-FROM githubpreview.dev'
|
||||
}
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
|
|
|
|||
|
|
@ -59,6 +59,10 @@ Rails.application.configure do
|
|||
# Suppress logger output for asset requests.
|
||||
config.assets.quiet = true
|
||||
|
||||
config.action_dispatch.default_headers = {
|
||||
'X-Frame-Options' => 'ALLOW-FROM githubpreview.dev'
|
||||
}
|
||||
|
||||
# Raises error for missing translations.
|
||||
# config.i18n.raise_on_missing_translations = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue