diff --git a/config/application.rb b/config/application.rb index 31a94e7ed..723f58766 100644 --- a/config/application.rb +++ b/config/application.rb @@ -38,6 +38,7 @@ module Educoderplus origins '*' # location of your api resource '/*', :headers => :any, :methods => [:get, :post, :delete, :options, :put] + resource 'http://outin-396971199eed11e991a100163e1c7426.oss-cn-shanghai.aliyuncs.com/*', :headers => :any, :methods => [:get, :post, :delete, :options, :put] end end end