Use asp-fallback-src #151
Unanswered
dylanvdmerwe
asked this question in
Q&A
Replies: 2 comments
-
Note that this should replace the fallback scripts folder. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Inline scripts are bad for Content-Security-Policy (CSP). Which is why this logic has been moved out. There is a way to use inline scripts with CSP but this requires adding hashes to the CSP HTTP header which means that it gets very large. HTTP 1.0 does not compress headers, making this bad for performance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the
_Layout.cs
file that is generated there is the following:The
asp-fallback-src
andasp-fallback-test
should be used as much as possible. For example if the jquery file cannot be retrieved from the CDN:See here for more information.
Beta Was this translation helpful? Give feedback.
All reactions