Skip to content

Commit b9dbfa1

Browse files
committed
Use rails proxy for fonts to avoid CORS issue
1 parent b01d9d7 commit b9dbfa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/decorators/website_decorator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def font_faces_css
117117
<<~CSS
118118
@font-face {
119119
font-family: "#{font.name}";
120-
src: url('#{h.url_for(font.file)}');
120+
src: url('#{h.rails_storage_proxy_path(font.file)}');
121121
}
122122
CSS
123123
end.join("\n").html_safe

0 commit comments

Comments
 (0)