Skip to content

Commit

Permalink
Add Vercel to whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
dsomel21 committed Feb 16, 2024
1 parent 4341a13 commit 8c96a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Application < Rails::Application

config.middleware.insert_before 0, Rack::Cors do
allow do
origins 'https://spg.dev', /\A.*\.netlify\.app\z/, 'localhost:3000'
origins 'https://spg.dev', /\A.*\.netlify\.app\z/, 'localhost:3000', 'https://beta.spg.dev', /\A.*\.vercel\.\z/

resource '*',
headers: :any,
Expand Down

0 comments on commit 8c96a01

Please sign in to comment.