From ea82f9fe2e70a2e06cb5eb81b52ebdb8c4d09f75 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 24 Jun 2024 16:42:22 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E7=AB=9E=E8=B5=9B=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=20=E5=85=81=E8=AE=B8=E7=89=B9=E5=AE=9A?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E8=B7=A8=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index f00243179..b0338d6d1 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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