• Register
  • Login
  • Pricing
  • Support
    • Support
    • Tutorials
    • Blog
    • Guide
    • Support Forum
  • Notification Settings Notification Settings
  • Private Messages Private Messages
  • All Messageboards
  • Bugs

Images and icons don't show anymore

Started 2022-04-12 by Matthieu Mayran

Matthieu Mayran

2022-04-12

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

Philipp Großelfinger

2022-04-12

Hi Matthieu,
Does the problem still persist?
Kind regards
Philipp

Chris Coetzee

2022-04-13

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

Chris Coetzee

2022-04-13

Looks like you've fixed it!

Philipp Großelfinger

2022-04-13

Thank you! I think it was a caching problem with our staging server, which has the same assets.

Tools

  • Main features
  • Voting
  • Surveys
  • Free tables
  • Collect ideas and feedback
  • Photo contests
  • PollUnit Lab

Support

  • Get Started
  • PollUnit Help
  • Tutorials
  • Support Forum
  • support@pollunit.com

Tutorials

  • Create your first poll
  • Advanced poll features
  • Distribute tasks online
  • Cast votes and rate options
  • Find a date
  • Vote on images
  • Create your own theme
  • Polls with your own logo
  • Evaluate your PollUnit
  • Dot Voting
  • Range Voting
  • Polls on your own website
  • Live Voting
  • Reach a consensus
  • Manage orga­nizations
  • Prevent multiple participation

Legal

  • Privacy policy
  • Terms of use
  • Imprint

PollUnit

  • PollUnit Blog
  • About PollUnit
  • Press kit
  • © PollUnit
  • Register
  • Login
  • Pricing
  • Support
    • Support
    • Tutorials
    • Blog
    • Guide
    • Support Forum