Browse Source

fixed 修改跨域方式trustie.net

pull/309/head
“xxq250” 3 years ago
parent
commit
2ddf8ebf09
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/application.rb

+ 1
- 1
config/application.rb View File

@@ -41,7 +41,7 @@ module Gitlink
config.middleware.insert_before 0, Rack::Cors do
allow do
# origins '*'
origins /http:\/\/localhost(:\d+)?\z/, /^(http|https):\/\/(.*(gitlink.org.cn))$/
origins /http:\/\/localhost(:\d+)?\z/, /^(http|https):\/\/(.*(gitlink.org.cn))$/, /^(http|https):\/\/(.*(trustie.net))$/
# location of your api
resource '/*', :headers => :any, :methods => [:get, :post, :delete, :options, :put], credentials: true
end


Loading…
Cancel
Save