Public: SDK: Disabled csp auto pass for same domain
This commit is contained in:
parent
147c63c3fa
commit
7c28619dc3
@ -110,7 +110,7 @@
|
||||
const validateCSP = async (targetSrc) => {
|
||||
let currentSrc = window.location.origin;
|
||||
|
||||
if (currentSrc.indexOf(targetSrc) !== -1) return; // skip check for the same domain
|
||||
//if (currentSrc.indexOf(targetSrc) !== -1) return; // skip check for the same domain
|
||||
|
||||
const response = await fetch(`${targetSrc}/api/2.0/security/csp`);
|
||||
const res = await response.json();
|
||||
|
Loading…
Reference in New Issue
Block a user