siarashield_workspace 0.0.53 → 0.0.55
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 +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -99,6 +99,7 @@ export const environment = {
|
|
|
99
99
|
```html
|
|
100
100
|
<siara-shield
|
|
101
101
|
[publicKey]="environment.siaraShieldPublicKey"
|
|
102
|
+
[cspNonce]="cspNonce"
|
|
102
103
|
(token)="onCaptchaToken($event)"
|
|
103
104
|
></siara-shield>
|
|
104
105
|
|
|
@@ -120,6 +121,8 @@ import { SiaraShieldComponent } from 'siarashield_workspace';
|
|
|
120
121
|
})
|
|
121
122
|
export class FormComponent {
|
|
122
123
|
protected readonly environment = environment;
|
|
124
|
+
protected readonly cspNonce =
|
|
125
|
+
document.querySelector<HTMLMetaElement>('meta[name="csp-nonce"]')?.content ?? undefined;
|
|
123
126
|
|
|
124
127
|
private isSubmitting = false;
|
|
125
128
|
@ViewChild(SiaraShieldComponent) private readonly captcha?: SiaraShieldComponent;
|