Skip to content

Commit 58781b3

Browse files
committed
Merge branch 'chore/update-cors-config' into staging
2 parents 5a9fac0 + 119e33f commit 58781b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/cors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Rails.application.config.middleware.insert_before 0, Rack::Cors do
44
allow do
5-
origins "*"
5+
origins(/\Ahttps:\/\/([a-z0-9-]+\.)*opentimberportal\.org\z/) if Rails.env.production? || Rails.env.staging?
66
resource "*", headers: :any, methods: %i[get post put patch delete options head]
77
end
88
end

0 commit comments

Comments
 (0)