From e6fdd27b73a95975d3958880ef4d78a51507f165 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 3 Jun 2025 14:53:40 -0700 Subject: [PATCH] Mentions CDN integrity and crossorigin attributes in Intro docs page (#41515) --- site/src/content/docs/getting-started/introduction.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/src/content/docs/getting-started/introduction.mdx b/site/src/content/docs/getting-started/introduction.mdx index 4c621d83e0..dc2c2d71a7 100644 --- a/site/src/content/docs/getting-started/introduction.mdx +++ b/site/src/content/docs/getting-started/introduction.mdx @@ -70,6 +70,10 @@ As reference, here are our primary CDN links. You can also use the CDN to fetch any of our [additional builds listed in the Contents page]([[docsref:/getting-started/contents]]). +When using CDN links, be sure to use the `integrity` attribute to verify the correct files and versions. These hashes are unique to each file and version of Bootstrap, so when you update to a new version, be sure the `integrity` attribute is also updated. + +We also include a `crossorigin="anonymous"` attribute to prevent [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) errors. + ## Next steps - Read a bit more about some [important global environment settings](#important-globals) that Bootstrap utilizes.