Comments (4)
It would be better if you can add the fallback section for sri check.
https://stackoverflow.com/questions/40408636/handling-load-error-within-subresource-integrity-check
https://github.com/JackuB/subresource-integrity-fallback/
https://github.com/cyph/sri-fallback
asp-fallback-test
https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/script-tag-helper?view=aspnetcore-5.0
from blog.
There is another interesting thing about sri when you checkout js files with git.
https://stackoverflow.com/questions/3206843/how-line-ending-conversions-work-with-git-core-autocrlf-between-different-operat
You will need to configure .gitattributes to make sure the js files are correctly checked out. It's for fallback purpose, when fallback you might use the js file from local instead of the cdn.
https://github.com/dotnet/aspnetcore/pull/36115/files
https://github.com/dotnet/aspnetcore/pull/20537/files
from blog.
It would be better if you can add the fallback section for sri check.
https://stackoverflow.com/questions/40408636/handling-load-error-within-subresource-integrity-check
https://github.com/JackuB/subresource-integrity-fallback/
https://github.com/cyph/sri-fallbackasp-fallback-test
https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/script-tag-helper?view=aspnetcore-5.0
@chucklu 谢谢建议,关于fallback这部分我这篇文章中没有提及,之前也研究了一下;后续如果时间允许的话我会把相关的内容再跟大家分享一下。
from blog.
There is another interesting thing about sri when you checkout js files with git.
https://stackoverflow.com/questions/3206843/how-line-ending-conversions-work-with-git-core-autocrlf-between-different-operatYou will need to configure .gitattributes to make sure the js files are correctly checked out. It's for fallback purpose, when fallback you might use the js file from local instead of the cdn.
https://github.com/dotnet/aspnetcore/pull/36115/files
https://github.com/dotnet/aspnetcore/pull/20537/files
@chucklu 关于这部分我还没有研究过,后面可以研究一下,谢谢分享。
from blog.
Related Issues (20)
- [2020.07.27] 正则表达式量词匹配方式的讲解(下篇)
- [2020.08.02] 报告老板,我们的H5页面在iOS11系统上白屏了!
- [2020.08.23] 想要在JS中把正则玩得飘逸,学会这几个函数的使用必不可少
- [2020.09.05] 糟糕,在错误的分支开发了新功能,该怎么处理呢?
- [2018-12-02] 使用JavaScript实现SkipList这种数据结构
- [2020.10.06] 设计模式大冒险第一关:观察者模式
- [2020.10.23] 快使用Scriptable自己开发一个iPhone小组件吧
- [2020.11.01] 设计模式大冒险第二关:装饰者模式,煎饼果子的主场
- [2020.11.11] 设计模式大冒险第三关:工厂模式,封装和解耦你的代码
- [2020.12.07] 设计模式大冒险第四关:单例模式,如何成为你的“唯一”
- [2021.01.10] 设计模式大冒险第五关:状态模式,if/else的“终结者” HOT 2
- [2021.04.05] 动手写一个简单的编译器:在JavaScript中使用Swift的尾闭包语法
- 能否提供 RSS ?
- [2019-03-24] 通俗易懂的讲解字符串匹配的KMP算法
- [2020.05.24] 深入理解JS对象隐式类型转换的过程
- [2020.06.11] (a == 1 && a == 2 && a == 3)为true,你所不知道的那些答案
- [2020.06.25] 正则表达式匹配素数的原理讲解
- [2020.07.02] 距离弄懂正则的环视,你只差这一篇文章
- [2020.07.12] 正则表达式量词匹配方式的讲解(上篇) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.