mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Fix: MathJax Fonts cors
This commit is contained in:
parent
4738c4295a
commit
5b35fd7bc3
2 changed files with 10 additions and 1 deletions
|
|
@ -56,7 +56,15 @@ waitress.wasyncore._DISCONNECTED = waitress.wasyncore._DISCONNECTED.union({EPROT
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
app = flask.Flask(__name__, root_path="/fake")
|
||||
flask_cors.CORS(app, resources={r"/*": {"origins": "127.0.0.1"}})
|
||||
flask_cors.CORS(
|
||||
app,
|
||||
resources={
|
||||
r"/_anki/js/vendor/mathjax/output/chtml/fonts/woff-v2/.*.woff": {
|
||||
"origins": "*"
|
||||
},
|
||||
r"/*": {"origins": "127.0.0.1"},
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
import "../base.scss";
|
||||
import "../../reviewer/reviewer.scss";
|
||||
|
||||
import "../../mathjax";
|
||||
import "mathjax/es5/tex-chtml-full.js";
|
||||
import { renderError } from "../../reviewer";
|
||||
import { addBrowserClasses } from "../../reviewer/browser_selector";
|
||||
|
|
|
|||
Loading…
Reference in a new issue