We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a9fac0 + 119e33f commit 58781b3Copy full SHA for 58781b3
config/initializers/cors.rb
@@ -2,7 +2,7 @@
2
3
Rails.application.config.middleware.insert_before 0, Rack::Cors do
4
allow do
5
- origins "*"
+ origins(/\Ahttps:\/\/([a-z0-9-]+\.)*opentimberportal\.org\z/) if Rails.env.production? || Rails.env.staging?
6
resource "*", headers: :any, methods: %i[get post put patch delete options head]
7
end
8
0 commit comments