Skip to content

Commit

Permalink
delete new source for posts and comments in cors for guest mode
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungHypo committed Dec 6, 2024
1 parent 6756137 commit 4bc7972
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,8 @@
allow do
origins 'http://localhost:8000',
/\Ahttp:\/\/.*\.elasticbeanstalk\.com\z/

resource '/api/posts',
headers: :any,
methods: [:get, :post],
credentials: false

resource '/api/comments',
headers: :any,
methods: [:get, :post],
credentials: false

resource '/api/*',
resource '*',
headers: :any,
methods: [:get, :post, :put, :patch, :delete, :options, :head],
credentials: true
Expand Down

0 comments on commit 4bc7972

Please sign in to comment.