Public: SDK: Disabled csp auto pass for same domain

This commit is contained in:
Ilya Oleshko 2024-04-12 16:23:40 +03:00
parent 147c63c3fa
commit 7c28619dc3

View File

@ -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();