Skip to content

Commit

Permalink
[pghero] CSRF vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Aug 4, 2020
1 parent e54c0f0 commit 03b7860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/pg_hero/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module PgHero
class HomeController < ActionController::Base
layout "pg_hero/application"

protect_from_forgery
protect_from_forgery with: :exception # https://github.com/ankane/pghero/commit/14b67b32fed19a30aaf9826ee72f2a29cda604e9

http_basic_authenticate_with name: ENV["PGHERO_USERNAME"], password: ENV["PGHERO_PASSWORD"] if ENV["PGHERO_PASSWORD"]

Expand Down

0 comments on commit 03b7860

Please sign in to comment.