Troubleshoot

Solusi Font Bootsrap Tidak Terbaca oleh Browser

Sebenarnya permasalahan ini sudah lama, tapi siapa tau ada yang mengalaminya.

MASALAH

Font bootstrap tidak terbaca oleh beberapa browser dikarenakan adanya error message:

“Font from origin ‘xxx’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘xxx’ is therefore not allowed access”

SOLUSI

Masukkan baris kode berikut pada file .htaccess di server.

————-

<ifModule mod_headers.c>

Header set Access-Control-Allow-Origin: http://domainurl.com

————-

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *