Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
0553e057
Commit
0553e057
authored
Jan 22, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #675 from edx/jarv/cross-domain-fonts
set access-control-allow-origin header on fonts
parents
f86e4997
e4303406
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
playbooks/roles/nginx/templates/cms.j2
+5
-0
playbooks/roles/nginx/templates/lms.j2
+4
-0
No files found.
playbooks/roles/nginx/templates/cms.j2
View file @
0553e057
...
...
@@ -38,6 +38,11 @@ server {
rewrite ^(.*)/favicon.ico$ /static/images/favicon.ico last;
# http://www.red-team-design.com/firefox-doesnt-allow-cross-domain-fonts-by-default
location ~* \.(eot|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
location @proxy_to_cms_app {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
...
...
playbooks/roles/nginx/templates/lms.j2
View file @
0553e057
...
...
@@ -35,6 +35,10 @@ server {
rewrite ^(.*)/favicon.ico$ /static/images/favicon.ico last;
# http://www.red-team-design.com/firefox-doesnt-allow-cross-domain-fonts-by-default
location ~* \.(eot|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
location @proxy_to_lms_app {
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment