fixed 修改跨域方式trustie.net

This commit is contained in:
“xxq250” 2022-07-19 18:05:53 +08:00
parent cb0112fde8
commit 2ddf8ebf09
1 changed files with 1 additions and 1 deletions

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