Skip to content

Commit 14b67b3

Browse files
committed
Fixed CSRF vulnerability with non-session based authentication
1 parent 8f190fa commit 14b67b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## 2.6.1 (unreleased)
22

3+
- Fixed CSRF vulnerability with non-session based authentication
34
- Added `database`, `user`, and `query_hash` options to `reset_query_stats` method
45

56
## 2.6.0 (2020-07-09)

app/controllers/pg_hero/home_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module PgHero
22
class HomeController < ActionController::Base
33
layout "pg_hero/application"
44

5-
protect_from_forgery
5+
protect_from_forgery with: :exception
66

77
http_basic_authenticate_with name: PgHero.username, password: PgHero.password if PgHero.password
88

0 commit comments

Comments
 (0)