Apache/Nginx下Font Awesome在Firefox中不顯示怎麼解決
一、nginx伺服器解決方法
伺服器使用的是nginx,要在回應的頭部添加access-control-allow-origin 字段,新增方法是用add_header 指令:
設定範例:
複製程式碼 程式碼如下:
location /assets/ {
gzip_static on;
expires max;
add_## expires max;
add_## public;
add_header access-control-allow-origin *;
二、apache伺服器解決方法
font awesome (firefox無法顯示)cross domain (跨域問題)the problem
it seems that, for security reasons, firefox simply don't allow you to use by default a font that is not hosted on your domain, not even on your subdomain. the cdn based websites can be also affected in this case.the Vution##vestf ##fations#fations , i found out the workaround: set a access-control-allow-origin header to the font.
複製程式碼 程式碼如下:
#
header set access-control-allow-origin "*"
also, if you are using nginx as your webserver you will need to include the code below in your virtual host file:
複製代碼 代碼如下:
add_header access-control-allow-origin *;
}#
以上是Apache/Nginx下Font Awesome在Firefox中不顯示怎麼解決的詳細內容。更多資訊請關注PHP中文網其他相關文章!

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

如何利用 Kubernetes Operator simplifiy PHP 雲端部署?
