Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Try a better regex for out of scoping the main chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
acodeninja committed Oct 7, 2021
1 parent 822f4e4 commit a8c718e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ root = true
[*.{js,ts,tsx}]
indent_size = 2
indent_style = space

[.zap-baseline.conf]
indent_style = tab
indent_size = tab
5 changes: 3 additions & 2 deletions .zap-baseline.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@
50001 FAIL (Script Passive Scan Rules)
90001 FAIL (Insecure JSF ViewState)
90011 FAIL (Charset Mismatch)
# Next.js 11.1's `main.js` file contains the string "Internal Server Error" which falsely trips up rule 90022 below
90022 OUTOFSCOPE .*\/chunks\/.*\.js
90022 FAIL (Application Error Disclosure)
90030 FAIL (WSDL File Detection)
90033 FAIL (Loosely Scoped Cookie)

# Next.js 11.1's `main.js` file contains the string "Internal Server Error" which falsely trips up rule 90022
90022 OUTOFSCOPE .*\/chunks\/main-.*\.js

0 comments on commit a8c718e

Please sign in to comment.