Files with Subresource Integrity does not downloads

Created on 25 December 2019, almost 5 years ago
Updated 13 September 2023, over 1 year ago

Bootstrap module use CDN file:

<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>

When clicks Ctrl+F5 al is OK.
But if next time do F5 - this file does not downloads at all. Error:

The FetchEvent for "https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js" resulted in a network error response: an "opaque" response was used for a request whose type is not no-cors

Perhaps this is due to the use of Subresource Integrity

After uninstalling PWA module error disappeared.

πŸ› Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡ΈSerbia super_romeo Belgrade

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    (Non-security) Bug fixes and new features go into 2.x - so could someone please check, if the issue still exists in 2.x or has been fixed already?
    Also please ensure there are clear steps to reproduce the issue. Perfect would be to have tests showing the issue exists and will be fixed forever then ;) Thank you!

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    #6 might be the right solution. Any other or general ideas?

  • πŸ‡ΊπŸ‡ΈUnited States thejimbirch Cape Cod, Massachusetts

    I ran into this on a site today using drupal/pwa: 1.5.0 for logged in users only.
    Uninstalling the PWA module and clearing the cache a few times resolved the issue.
    I will try to revisit using the latest branch and report back.

Production build 0.71.5 2024