Skip to content

Commit

Permalink
Update cors configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Oct 18, 2024
1 parent 2c2f27b commit 4bd32ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/interactions/update_api_documentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def execute

def version
@version ||=
Package.find_by(repository: 'mint-lang/core').versions.unscoped.first
Package.find_by(repository: 'mint-lang/core').versions.first
end

def readme(dir)
Expand Down
4 changes: 3 additions & 1 deletion config/initializers/cors.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins 'localhost:3000', 'sandbox.mint-lang.com'
origins 'localhost:3000', 'sandbox.mint-lang.com',
'https://mint-website-2.netlify.app/',
'mint-lang.com'

resource '*',
credentials: true,
Expand Down

0 comments on commit 4bd32ff

Please sign in to comment.