Skip to content

Securing your CDN: Why and how should you use SRI #7823

@Caxton-writer

Description

@Caxton-writer

NOTE: All 1st-time contributors should know Topic approval and PR submission do NOT guarantee your Topic/Article will be published. Our team of Peer Reviewers and Content Moderators will review all PRs that come in to make sure they adhere to the standard of quality we expect from the EngEd community.

We expect all community members to go through provided examples, resources, and previously published material before submitting content. As a rule of thumb, please only submit articles (pull requests) that are complete, formatted correctly, and include a fully polished article (ready to be published and error-free).

All revisions and edits should be completed on your forked repo (as to not take up room in the queue). Any PR that is submitted incomplete (meaning not ready to be published as is) will be closed. A PR being closed does NOT mean the article can not be published (or fixed) it simply means that the edits, revisions, and fixes will happen outside of the queue.

NOTE: Any topic suggestion copied/taken/modified from YouTube may Lead to a permanent ban from the community.

Topic Suggestion

Proposed title of the article

Securing your CDN: Why and how should you use SRI

Proposed article introduction

Using an external CSS or a third-party JavaScript library on a website has never been simpler. Including script src="https://example.com/whatever.js"> in the head> part of a HTML is all that is required, right? discovered some attractive CSS? Include it on a website by using the link rel="stylesheet" href="..."> tag.In ths tutorial article we will be taking you through all the mentioned above.

Key takeaways

-Problems with relying on your CDN
-What is SRI and how can it solve this problem
-How to use SRI
-How to get SRI Hash

  • Limitations of using SRI

Conclusion

The best line of defense against corrupted CSS and JavaScript from outside parties is SRI. Although it's quite simple to use, you must ensure that your website can function without the aid of outside resources in case something goes wrong.

Templates to use as guides

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions