Hosting MathJax on nginx server: CORS errorsNginx 502 Bad GatewayInternal Server Error nginxnginx send log to...
Installing the original OS X version onto a Mac?
Show two plots together: a two dimensional curve tangent to the maxima of a three dimensional plot
Do banks' profitability really suffer under low interest rates
9 hrs long transit in DEL
Reducing contention in thread-safe LruCache
Is there a way to make the "o" keypress of other-window <C-x><C-o> repeatable?
Meaning and structure of headline "Hair it is: A List of ..."
How can I train a replacement without them knowing?
Expand def in write18
What is bodily formation? Does it refer to the breath or the body?
Is "stainless" a bulk or a surface property of stainless steel?
Check disk usage of files returned with spaces
Can the front glass be repaired of a broken lens?
Repurpose telephone line to ethernet
Why do aircraft leave cruising altitude long before landing just to circle?
What is "super" in superphosphate?
Are there any OR challenges that are similar to kaggle's competitions?
Have only girls been born for a long time in this village?
Is there a commercial liquid with refractive index greater than n=2?
Does the Temple of the Gods spell nullify critical hits?
Number of matrices with bounded products of rows and columns
When does The Truman Show take place?
Did Wernher von Braun really have a "Saturn V painted as the V2"?
Control GPIO pins from C
Hosting MathJax on nginx server: CORS errors
Nginx 502 Bad GatewayInternal Server Error nginxnginx send log to remote syslog serverAbout second-level domain names corresponding to nginx server blocksCoreOS - Hosting cloud-config using nginxnginx behind proxy serverHosting multiple apps on Nginx Ubuntu 14.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am trying to host MathJax on our location network (IP 10.0.x.y, no hostname) using the following nginx config:
server {
listen 80;
server_name _;
location ~* .(ttf|ttc|otf|eot|woff|font.css)$ {
add_header "Access-Control-Allow-Origin" "*";
expires 1M;
add_header Cache-Control "public";
}
location /misc/ {
root /var/www/html/;
}
}
I am getting a lot
Access to font at 'http://10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5:1 GET http://10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5 net::ERR_FAILED
errors in chrome.
How to correctly allow access to these fonts?
nginx
add a comment |
I am trying to host MathJax on our location network (IP 10.0.x.y, no hostname) using the following nginx config:
server {
listen 80;
server_name _;
location ~* .(ttf|ttc|otf|eot|woff|font.css)$ {
add_header "Access-Control-Allow-Origin" "*";
expires 1M;
add_header Cache-Control "public";
}
location /misc/ {
root /var/www/html/;
}
}
I am getting a lot
Access to font at 'http://10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5:1 GET http://10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5 net::ERR_FAILED
errors in chrome.
How to correctly allow access to these fonts?
nginx
add a comment |
I am trying to host MathJax on our location network (IP 10.0.x.y, no hostname) using the following nginx config:
server {
listen 80;
server_name _;
location ~* .(ttf|ttc|otf|eot|woff|font.css)$ {
add_header "Access-Control-Allow-Origin" "*";
expires 1M;
add_header Cache-Control "public";
}
location /misc/ {
root /var/www/html/;
}
}
I am getting a lot
Access to font at 'http://10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5:1 GET http://10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5 net::ERR_FAILED
errors in chrome.
How to correctly allow access to these fonts?
nginx
I am trying to host MathJax on our location network (IP 10.0.x.y, no hostname) using the following nginx config:
server {
listen 80;
server_name _;
location ~* .(ttf|ttc|otf|eot|woff|font.css)$ {
add_header "Access-Control-Allow-Origin" "*";
expires 1M;
add_header Cache-Control "public";
}
location /misc/ {
root /var/www/html/;
}
}
I am getting a lot
Access to font at 'http://10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5:1 GET http://10.0.x.y/misc/MathJax-2.7.5/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff?V=2.7.5 net::ERR_FAILED
errors in chrome.
How to correctly allow access to these fonts?
nginx
nginx
edited 2 days ago
muru
43.8k5 gold badges110 silver badges181 bronze badges
43.8k5 gold badges110 silver badges181 bronze badges
asked 2 days ago
bonanzabonanza
1697 bronze badges
1697 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535842%2fhosting-mathjax-on-nginx-server-cors-errors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f535842%2fhosting-mathjax-on-nginx-server-cors-errors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown