mathjax / mathjax/MathJax

support subresource integrity [was: CDN does not offer specific versions]

Open
#1,366 16 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request
Dominant language
JavaScript
Stars
10.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

According to the documentation, the MathJax CDN does not offer any endpoints for specific versions, but only for latest patch versions. This makes using subresource integrity with the CDN effectively impossible. I understand the desire to give users the latest patches--this is one reason to use the CDN after all--but it should be possible to use the CDN without compromising security.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CDN-loading documentation and SRI specification linked in the issue, then trace how MathJax CDN URLs select patch versions. Define how immutable versioned resources and integrity metadata should be exposed, and verify the documented CDN usage supports SRI without losing the latest-patch option.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
security, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.