diff --git a/app/controllers/homeland_sso_controller.rb b/app/controllers/homeland_sso_controller.rb index 9f30069291..b505f95403 100644 --- a/app/controllers/homeland_sso_controller.rb +++ b/app/controllers/homeland_sso_controller.rb @@ -15,6 +15,6 @@ def sso # 最后将准备好的信息计算成加密的 URL Query String 并跳转到 Homeland 应用的 SSO 登录地址 '/auth/sso/login' # Homeland 接收到信息以后,将会实现同步账号登陆的流程 - redirect_to sso.to_url(Rails.application.credentials[Rails.env.to_sym][:homeland_url]) + redirect_to sso.to_url(Rails.application.credentials[Rails.env.to_sym][:homeland_url]), allow_other_host: true end end diff --git a/config/application.rb b/config/application.rb index 42a40c4b34..5938aa1fb1 100644 --- a/config/application.rb +++ b/config/application.rb @@ -22,7 +22,7 @@ module Oauth2id class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 7.1 + config.load_defaults 7.0 # Please, add to the `ignore` list any other `lib` subdirectories that do # not contain `.rb` files, or that should not be reloaded or eager loaded. diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb deleted file mode 100644 index a579326e20..0000000000 --- a/config/initializers/new_framework_defaults_7_0.rb +++ /dev/null @@ -1,117 +0,0 @@ -# Be sure to restart your server when you modify this file. -# -# This file eases your Rails 7.0 framework defaults upgrade. -# -# Uncomment each configuration one by one to switch to the new default. -# Once your application is ready to run with all new defaults, you can remove -# this file and set the `config.load_defaults` to `7.0`. -# -# Read the Guide for Upgrading Ruby on Rails for more info on each option. -# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html - -# `button_to` view helper will render `