: CORS Policy errors : formae98 February 14, 2018, 04:24:04 AM hi,
after installing a SSL certificate, i start having these errors: Access to Font at 'https://www.ediliziasmart.it/templates/regan_tech/css/font-awesome/font/fontawesome-webfont.woff?v=3.2.1' from origin 'https://ediliziasmart.it' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://ediliziasmart.it' is therefore not allowed access. (index):1 Access to Font at 'https://www.ediliziasmart.it/templates/regan_tech/css/ionicons/fonts/ionicons.ttf?v=2.0.0' from origin 'https://ediliziasmart.it' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://ediliziasmart.it' is therefore not allowed access. Is there something I can do? : Re: CORS Policy errors : mikek February 14, 2018, 09:29:58 AM Hello,
I don't know what a CORS policy is. If your SSL cert is blocking content on your own website, that is an issue with the cert. One thing I can see your code above is your loading your site without a www: https://ediliziasmart.it/ While the files are called a www. The urls must be exactly the same for an ssl cert. I would highly recommend forcing a www. redirect on your site so that all urls use a www. It is a good practice to have whether you have ssl or not. Your hosting provider can assist with that. : Re: CORS Policy errors : formae98 February 14, 2018, 01:22:57 PM You are right.
Problem solved forcing www.* Thanks a lot |