Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Caxton-writer opened this issue Jul 29, 2023 · 2 comments
Open

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

Caxton-writer opened this issue Jul 29, 2023 · 2 comments
Labels
topic suggestion Suggestion for a new article.

Comments

@Caxton-writer
Copy link

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

@Caxton-writer Caxton-writer added the topic suggestion Suggestion for a new article. label Jul 29, 2023
@github-actions
Copy link

👋 @Caxton-writer
Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.

@Sarahaburu
Copy link

Good day,
My name is Sarah, I have reviewed this topic and I believe I can work with it can I send the full article here. Thanks for considering my proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic suggestion Suggestion for a new article.
Projects
None yet
Development

No branches or pull requests

2 participants