siarashield_workspace 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -190,16 +190,13 @@ Use this when you want a client-safe setup that avoids popup close issues with c
|
|
|
190
190
|
<meta http-equiv="Content-Security-Policy" content="
|
|
191
191
|
default-src 'self';
|
|
192
192
|
script-src 'self' 'unsafe-inline' https://embed.mycybersiara.com https://embedcdn.mycybersiara.com;
|
|
193
|
-
script-src-elem 'self' '
|
|
193
|
+
script-src-elem 'self' 'unsafe-inline' https://embed.mycybersiara.com https://embedcdn.mycybersiara.com;
|
|
194
194
|
connect-src 'self' https://embed.mycybersiara.com https://embedcdn.mycybersiara.com;
|
|
195
195
|
style-src 'self' https://embed.mycybersiara.com https://mycybersiara.com https://fonts.googleapis.com https://cdnjs.cloudflare.com 'unsafe-inline';
|
|
196
196
|
font-src 'self' https://fonts.gstatic.com https://mycybersiara.com https://cdnjs.cloudflare.com data:;
|
|
197
197
|
img-src 'self' data: https://embed.mycybersiara.com https://embedcdn.mycybersiara.com https://mycybersiara.com;
|
|
198
198
|
">
|
|
199
199
|
|
|
200
|
-
<script nonce="SIARASHIELD_NONCE">
|
|
201
|
-
window.__cspNonce = "SIARASHIELD_NONCE";
|
|
202
|
-
</script>
|
|
203
200
|
<script nonce="SIARASHIELD_NONCE" src="https://embedcdn.mycybersiara.com/capcha-temple/js/jquery.min.js"></script>
|
|
204
201
|
<script nonce="SIARASHIELD_NONCE" src="https://embedcdn.mycybersiara.com/CaptchaFormate/CaptchaResources.js"></script>
|
|
205
202
|
```
|
|
@@ -210,7 +207,6 @@ If your backend uses helper functions, generate compatibility policy like this:
|
|
|
210
207
|
import { getSiaraShieldCspPolicy } from 'siarashield_workspace';
|
|
211
208
|
|
|
212
209
|
const csp = getSiaraShieldCspPolicy({
|
|
213
|
-
nonce: 'SIARASHIELD_NONCE',
|
|
214
210
|
includeUnsafeInlineScript: true,
|
|
215
211
|
includeUnsafeInlineStyle: true,
|
|
216
212
|
});
|