From 9f7c9d6ec7e126ec40410fd048694a04ea969c2b Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Wed, 27 Jan 2021 17:22:16 +0800 Subject: [PATCH] FIX CORS problem for develop --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index a09b08def..62d95dbf2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -42,7 +42,7 @@ module Educoderplus allow do origins '*' # location of your api - resource '/*', :headers => :any, :methods => [:get, :post, :delete, :options, :put] + resource '/*', :headers => :any, :methods => [:get, :post, :delete, :options, :put, :patch] end end end