修改application.rb 里的cookestore

This commit is contained in:
sylor_huang@126.com 2020-04-15 11:05:50 +08:00
parent 38bd22597e
commit f0d7b0b091
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ module Educoderplus
provider :cas, url: 'https://urp.tfswufe.edu.cn/cas'
end
config.middleware.use ActionDispatch::Cookies
config.middleware.use ActionDispatch::Session::CookieStore
config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'