Skip to content

Commit

Permalink
feat: changed deprecated JS property #31
Browse files Browse the repository at this point in the history
* changed `document.domain` to `location.hostname`
  • Loading branch information
forgedhallpass committed Oct 16, 2024
1 parent c47c2a0 commit 57d0bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrfguard/src/main/resources/csrfguard.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ if (owaspCSRFGuardScriptHasLoaded !== true) {
}
}

result = isValidDomain(document.domain, domain);
result = isValidDomain(location.hostname, domain);
/* explicitly skip anchors */
} else if (src.charAt(0) === '#') {
result = false;
Expand Down

0 comments on commit 57d0bd8

Please sign in to comment.