From f0d7b0b09153a0beac3c8c2c28110856116cce63 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 15 Apr 2020 11:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9application.rb=20=E9=87=8C?= =?UTF-8?q?=E7=9A=84cookestore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index f7d05dcd4..feb5605d3 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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 '*'