Jump to content
Alexandre Carette

Pb de "Access-Control-Allow-Origin" avec "Smart cache" pour les feuilles de style

Recommended Posts

Bonjour tout le monde,

J'ai un petit problème lorsque j'active la concatenation CSS d'un de mes sites
 

Access to Font at 'https://monsite.com/modules/montheme/views/fonts/fontawesome-webfont.ttf' from origin 'https://www.monsite.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'https://www.monsite.com' is therefore not allowed access.

Mon .htaccess comporte bien

<IfModule mod_headers.c>
	<FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">
		Header add Access-Control-Allow-Origin "*"
	</FilesMatch>
</IfModule>

et le module headers est bien activé sur le serveur...

 

Quelqu'un peut il me faire une suggestion ?

 

merci beaucoup

Edited by Alexandre Carette (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More