修改application.rb 里的cookestore
This commit is contained in:
parent
38bd22597e
commit
f0d7b0b091
|
@ -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 '*'
|
||||
|
|
Loading…
Reference in New Issue