Skip to content

Commit

Permalink
Merge pull request #9 from instacart/levkk-csrsf
Browse files Browse the repository at this point in the history
[pghero] CSRF vulnerability
  • Loading branch information
levkk authored Aug 4, 2020
2 parents e54c0f0 + 03b7860 commit f9c3fca
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 f9c3fca

Please sign in to comment.