Skip to content

CSP Script nonce support #814

@pdobrigkeit

Description

@pdobrigkeit

Can you add another property to provide a nonce string configuration as per
https://developers.google.com/recaptcha/docs/faq#im-using-content-security-policy-csp-on-my-website.-how-can-i-configure-it-to-work-with-recaptcha

We are using CSP and right now the package is failing. Right now I am trying to get around it by manually inserting the script tag, but it would safe a lot of effort if I just could configure it directly.

<VueRecaptcha
  class="captcha"
  v-model="captchaToken"
  :sitekey="sitekey"
  :loadRecaptchaScript="true"
  nonce="abc123"
  @verify="validateCaptcha"
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions