Skip to content

Commit

Permalink
refactor: disable csrf in testing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 27, 2020
1 parent a043bbe commit 91b774d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion npm-audit.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h5 class="card-title">
<div class="card">
<div class="card-body">
<h5 class="card-title">
July 27th 2020, 4:45:06 pm
July 27th 2020, 5:52:49 pm
</h5>
<p class="card-text">Last updated</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/shield.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const csrf: ShieldConfig['csrf'] = {
| Enable/Disable CSRF
|--------------------------------------------------------------------------
*/
enabled: true,
enabled: Env.get('NODE_ENV') !== 'testing',

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 91b774d

Please sign in to comment.