Click here to Skip to main content
15,888,174 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Quote:
While rendering 3rd party website in asp.net application, I am getting below issue:-

Failed to find a valid digest in the 'integrity' attribute for resource 'https://abc.com/Router.aspx?ref=https://www.gstatic.com/recaptcha/releases/7GNHBF$567/recaptcha__en.js ' with computed SHA-256 integrity 'xXdSw34WXT+xDY='. The resource has been blocked.

In chrome console window I am getting above issue.

How can I solve above issue?


What I have tried:

I saw above issue first time. Earlier t was working fine and we are able to render the other website in our application. I think it's related to captcha which I do not have any idea.
Posted
Updated 22-Mar-21 22:59pm

1 solution

You have a Content Security Policy[^] on your site which is blocking you from loading scripts without a valid subresource integrity[^] attribute.

You have either not included the integrity attribute on your <script> tag, or the value you've specified doesn't match the computed value of your script.

The real question is, why are you trying to load ReCAPTCHA scripts in this unsupported way? Just follow Google's documentation to load them properly:
reCAPTCHA  |  Google Developers[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900