Icons and images don't show on the website anymore which makes voting quite difficult
Access to font at 'https://assets2.pollunit.com/packs/media/fonts/pollunit-59af44c8899b307fac23f3b800ae507f.woff' from origin 'https://pollunit.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
pollunit-59af44c8899b307fac23f3b800ae507f.woff:1
Any change to fix this?
Thanks
Hi Matthieu,
Does the problem still persist?
Kind regards
Philipp
Hi Philipp, yes, this problem is still present on both Chrome and Firefox.
You need to look at your asset server configuration and allow pollunit.com
to load the assets from assets2.pollunit.com
. Here's a guide https://stackoverflow.com/questions/10636611/how-does-access-control-allow-origin-header-work
It seems that on your assets2.pollunit.com
server you must add a header for the font files:
Access-Control-Allow-Origin: https://pollunit.com
It might be that your Nginx server is serving the fonts and not your app server, so that's why your JS loading works and not your fonts.
Here's the error I am seeing
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://assets2.pollunit.com/packs/media/fonts/pollunit-59af44c8899b307fac23f3b800ae507f.woff. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200
Looks like you've fixed it!
Thank you! I think it was a caching problem with our staging server, which has the same assets.