When my website first time loaded the fonts are not loaded. I'm receiving following errors
Font from origin 'https://locohop.com' has been blocked from loading by
Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin'
header is present on the requested resource. Origin 'http://locohop.com'
is therefore not allowed access.
I lots off googling and this question is already asked on stackoverflow
I follow all the steps given in above question but fonts are not worked correctly. and I am using AWS EC2 instance
Here is my CORS configuration
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>https://www.locohop.com</AllowedOrigin>
<AllowedOrigin>http://www.locohop.com</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>Content-*</AllowedHeader>
<AllowedHeader>Host</AllowedHeader>
</CORSRule>
</CORSConfiguration>
I don't know why i am getting this error? your help is greatly appreciated.
Thanks.