merge from pre_trustie_server

This commit is contained in:
2022-07-21 10:43:58 +08:00
2 changed files with 13 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ module Gitlink
# origins '*'
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
resource '/*', :headers => :any, :methods => [:get, :post, :delete, :options, :put, :patch], credentials: true
end
end
end