fixed 竞赛报名统计 允许特定站点跨域

This commit is contained in:
xxq250 2024-06-24 16:42:22 +08:00
parent cc516f2dc4
commit ea82f9fe2e
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ module Gitlink
allow do
# origins '*'
# osredm.com 111.8.36.180, 119.3.190.9
origins /http:\/\/localhost(:\d+)?\z/, /^(http|https):\/\/(.*(osredm.com))$/, /http:\/\/111\.8\.36\.\d{1,3}(:\d+)?\z/, /http:\/\/119\.3\.190\.\d{1,3}(:\d+)?\z/
origins /http:\/\/localhost(:\d+)?\z/, /^(http|https):\/\/(.*(osredm.com))$/, /http:\/\/111\.8\.36\.\d{1,3}(:\d+)?\z/, /http:\/\/119\.3\.190\.\d{1,3}(:\d+)?\z/, /^(http|https):\/\/(.*(gitlink.org.cn))$/
# location of your api
resource '/*', :headers => :any, :methods => [:get, :post, :delete, :options, :put, :patch], credentials: true
end