8000 Use fonts from CDN instead of local to avoid asset path problems by Floppy · Pull Request #2422 · manyfold3d/manyfold · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use fonts from CDN instead of local to avoid asset path problems #2422

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

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
4 changes: 2 additions & 2 deletions app/assets/stylesheets/application.bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ $table-bg-scale: -90%;

@import 'bootstrap/scss/bootstrap';

$bootstrap-icons-font-dir: "./bootstrap-icons/font/fonts";
$bootstrap-icons-font-dir: "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts";
@import 'bootstrap-icons/font/bootstrap-icons';

$ra-font-path: "./rpg-awesome/fonts";
$ra-font-path: "https://cdn.jsdelivr.net/npm/rpg-awesome@0.2.0/fonts";
@import 'rpg-awesome/scss/rpg-awesome';

@import 'layout';
Expand Down
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def configure_content_security_policy
content_security_policy.connect_src :self
content_security_policy.frame_ancestors :self
content_security_policy.frame_src :none
content_security_policy.font_src :self, "https://cdn.jsdelivr.net"
content_security_policy.img_src :self, :data
content_security_policy.object_src :none
content_security_policy.script_src :self
Expand Down
Loading
0