Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
Added cors, removed some unwanted resources with gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed May 8, 2023
1 parent 7fcef33 commit 79680d9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/db/*.sqlite3-*

# Ignore all logfiles and tempfiles.
/log/.keep
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
Expand All @@ -36,3 +36,4 @@
tmp
node_modules
storage
yarn.lock
18 changes: 9 additions & 9 deletions config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

# Read more: https://github.com/cyu/rack-cors

# Rails.application.config.middleware.insert_before 0, Rack::Cors do
# allow do
# origins "example.com"
#
# resource "*",
# headers: :any,
# methods: [:get, :post, :put, :patch, :delete, :options, :head]
# end
# end
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins "*.worldcubeassociation.org"

resource "*",
headers: :any,
methods: [:get, :post, :put, :patch, :delete, :options, :head]
end
end
7 changes: 0 additions & 7 deletions log/development.log

This file was deleted.

4 changes: 0 additions & 4 deletions yarn.lock

This file was deleted.

0 comments on commit 79680d9

Please sign in to comment.