Lines 44-50
sub call {
Link Here
|
44 |
my $request_method = $req->method // q{}; |
44 |
my $request_method = $req->method // q{}; |
45 |
my $uri = $req->uri // q{}; |
45 |
my $uri = $req->uri // q{}; |
46 |
my $referer = $req->referer // q{No referer}; |
46 |
my $referer = $req->referer // q{No referer}; |
47 |
my $request_path = $req->path // q{}; |
47 |
my $request_path = $req->path // q{}; |
48 |
|
48 |
|
49 |
my %path_exceptions = ( |
49 |
my %path_exceptions = ( |
50 |
'/ilsdi.pl' => 1, |
50 |
'/ilsdi.pl' => 1, |
Lines 53-60
sub call {
Link Here
|
53 |
#NOTE: Ignore ErrorDocument requests for CSRF |
53 |
#NOTE: Ignore ErrorDocument requests for CSRF |
54 |
if ( $env->{'psgix.errordocument.SCRIPT_NAME'} ) { |
54 |
if ( $env->{'psgix.errordocument.SCRIPT_NAME'} ) { |
55 |
return $self->app->($env); |
55 |
return $self->app->($env); |
56 |
} |
56 |
} elsif ( $path_exceptions{$request_path} ) { |
57 |
elsif ( $path_exceptions{$request_path} ){ |
57 |
|
58 |
#NOTE: Ignore path exceptions for CSRF |
58 |
#NOTE: Ignore path exceptions for CSRF |
59 |
return $self->app->($env); |
59 |
return $self->app->($env); |
60 |
} |
60 |
} |
61 |
- |
|
|