Botframework-webchat: None of the “sha384” hashes in the integrity attribute match the content of the subresource.

Created on 11 Jun 2020  ·  5Comments  ·  Source: microsoft/BotFramework-WebChat

Screenshots

img

Version

CDN 4.9.1

Describe the bug

Under error console it shows error with message
"Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdn.botframework.com/botframework-webchat/4.9.1/webchat.js' with computed SHA-256 integrity '/uKEj+TXU//TeP3tqa81MmH9ap2xVN1bogUjrvCTr/M='. The resource has been blocked".

Steps to reproduce

  1. Add WebChat CDN 4.9.1 to the host application.
  2. Run the application.
  3. Observe the error under browser console.

Additional context

CDN 4.9.0 does not have this error.

Source Code

<script crossorigin="anonymous"
          integrity="sha384-MCSAp6/JY4zv0hrJhg231zdTCnIjyefitzXr46hE8XDzGGZSiEn7ClIOAEhQj6tP"
          src="https://cdn.botframework.com/botframework-webchat/4.9.1/webchat.js"></script>

<script crossorigin="anonymous"
          integrity="sha384-7GOIvwVvb++zeyLdIJlXOit8VaYsDJFo0VWa1hgXnVsUnidOjkGlNYOZfuBaepS5"
          src="https://cdn.botframework.com/botframework-webchat/4.9.1/webchat-es5.js"></script>

[Bug]

Bot Services Bug customer-replied-to customer-reported

All 5 comments

Will update them, thanks for reporting.

I have updated the SHA384 at https://github.com/microsoft/BotFramework-WebChat/releases/tag/v4.9.1.

We recently updated our bundle to be served gzipped. May be we didn't gunzip before calculating the SHA384.

I have updated the deployment steps and it should work correctly in the future.

@compulim thank you, yes it works now but I see another error under the console and I am not sure if I need to open another issue for this or not.

img

This is defenfatly a different issue.

Can you open this one on botframework-directlinejs? I think this is related to the chat adapter, than Web Chat.

@compulim sure, here is the issue #287

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kellym-Kainos picture Kellym-Kainos  ·  4Comments

compulim picture compulim  ·  3Comments

AndreMantas picture AndreMantas  ·  4Comments

prashanthsridhar picture prashanthsridhar  ·  3Comments

vikramdadwal picture vikramdadwal  ·  3Comments