Skip to content

CDN link integrity and crossorigin #1582

Description

@fulldecent

In Bootstrap documentation, the recommended code to link using CDN is:

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">

However the same code on Bootstrap Icons documentation is:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">

Please update the latter to include the best practice elements of the former. Specifically the integrity= and crossorigin= parts.

Previously I would ignore whatever the recommended code was and run over to jsDelivr myself to get the required sha256 parts. However now with the jsDelivr website redesign, they have specifically made it harder to get this thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions