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

feat: mathjax rendering #12062

Merged
merged 1 commit into from
Aug 11, 2022
Merged

feat: mathjax rendering #12062

merged 1 commit into from
Aug 11, 2022

Conversation

miketheman
Copy link
Member

First attempt in #12028, reverted in #12040 due to errors observed with cache busting, which didn't really work for resources in the static pipeline that need to call other resources. we'd have to modify the vendored code during the static build phase, which seemed even more complex.

This time, load from CDN.

As the main script loads other files from a shared CDN, scope the path they are allowed to as deeply as possible, which prevents anything else from being loaded outside that path.

Combined with the resource integrity checks, and the content security policy updates, nothing else should be able to be loaded from the CDN.

Signed-off-by: Mike Fiedler [email protected]

This time, load from CDN.

As the main script loads other files from a shared CDN, scope the path
they are allowed to as deeply as possible, which prevents anything else
from being loaded outside that path.

Combined with the resource integrity checks, and the content security
policy updates, nothing else should be able to be loaded from the CDN.

Signed-off-by: Mike Fiedler <[email protected]>
@miketheman miketheman requested a review from a team as a code owner August 10, 2022 23:14
@di di merged commit 5df2b08 into pypi:main Aug 11, 2022
@miketheman miketheman deleted the miktheman/mathjax-take-2 branch August 11, 2022 20:21
SamirPS pushed a commit to SamirPS/warehouse that referenced this pull request Aug 30, 2022
This time, load from CDN.

As the main script loads other files from a shared CDN, scope the path
they are allowed to as deeply as possible, which prevents anything else
from being loaded outside that path.

Combined with the resource integrity checks, and the content security
policy updates, nothing else should be able to be loaded from the CDN.

Signed-off-by: Mike Fiedler <[email protected]>

Signed-off-by: Mike Fiedler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants