Bug html
Résolu/Fermé
Bonjour,
Access to Font at 'https://www.mondomaine.fr/asset/css/fonts/franchise-bold-webfont.ttf' from origin 'https://mondomaine.fr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://mondomaine.fr' is therefore not allowed access.
Voila j'arrive pas à trouver comment resoudre ce bug
Access to Font at 'https://www.mondomaine.fr/asset/css/fonts/franchise-bold-webfont.ttf' from origin 'https://mondomaine.fr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://mondomaine.fr' is therefore not allowed access.
Voila j'arrive pas à trouver comment resoudre ce bug
A voir également:
- Bug html
- Editeur html - Télécharger - HTML
- Br html ✓ - Forum Webmastering
- Iptv bug - Forum Box et Streaming vidéo
- Bug localisation snap ✓ - Forum Snapchat
- Bug chromecast - Guide
1 réponse
elgazar
Messages postés
5841
Date d'inscription
mercredi 30 octobre 2013
Statut
Membre
Dernière intervention
17 mars 2021
1 326
27 déc. 2017 à 18:33
27 déc. 2017 à 18:33
Bonjour
je crois que cela vient du fait que tu utilises deux urls différentes avec et sans www
je crois que cela vient du fait que tu utilises deux urls différentes avec et sans www
27 déc. 2017 à 20:28
1 janv. 2018 à 15:42
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^tondomaine.fr$
RewriteRule ^(.*) http://www.tondomaine.fr/$1 [QSA,L,R=301]
15 janv. 2018 à 18:50
Sinon dans mon .htaccess j'ai mis :
RewriteEngine On
# RewriteCond %{SERVER_PORT} 80
# RewriteCond %{HTTP_HOST} ^https://www.amnexia.fr [NC]
# RewriteRule ^(.*)$ https://www.exemple.fr/$1 [L,R=301,NC]
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]