Remove useless iframe config option

pull/1240/head
Rick Carlino 2019-06-19 10:30:06 -05:00
parent 088f597b09
commit 334f8edf18
2 changed files with 2 additions and 3 deletions

View File

@ -65,6 +65,8 @@ class DashboardController < ApplicationController
response.headers["Cache-Control"] = "no-cache, no-store"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "0"
response.headers["X-Frame-Options"] =
"ALLOWALL" if [:main_app, :demo].include?(actn)
load_css_assets
load_js_assets
render actn

View File

@ -16,9 +16,6 @@ module FarmBot
config.middleware.use Rack::Attack
config.active_record.schema_format = :sql
config.active_job.queue_adapter = :delayed_job
config.action_dispatch.default_headers = {
"X-Frame-Options" => "ALLOW-FROM https://farm.bot",
}
config.action_dispatch.perform_deep_munge = false
I18n.enforce_available_locales = false
LOCAL_API_HOST = ENV.fetch("API_HOST", "parcel")