Skip to content

Commit

Permalink
set credentials to false in cors.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungHypo committed Dec 7, 2024
1 parent 7ce63f6 commit 33e4866
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base
skip_forgery_protection
skip_before_action :verify_authenticity_token

private

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
resource '*',
headers: :any,
methods: [:get, :post, :put, :patch, :delete, :options, :head],
credentials: true
credentials: false
end
end

0 comments on commit 33e4866

Please sign in to comment.