• 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.

Bernhard Pfister

2022-09-23

Hi. My participants have the exact same problem again: the icons don't show anymore. Once I call the woff font file directly, then it works. Any chance you can fix this?

Philipp Großelfinger

2022-09-23

Hi Bernhard,
we could not reproduce the problem. However we invalidated the cache. Can you try now again (Maybe also clear your browser cache).
If it does not work, is the problem maybe because you are inside a corporate network?
Kind regards
Philipp

Bernhard Pfister

2022-09-23

Hi Philipp, thanks for the prompt reaction. It seems that it is fixed now.
How it can be, that you can't reproduce it, I'm not sure. First I thought it was a local problem on my machine, until my participants had the exact same problem. Maybe it was a local problem just in Switzerland on some proxy servers?
On my phone I still have the problem just for the home page https://pollunit.com/de
Anyway, I'm not sure if this helps: to me it seemed as if the problem occured after I switched the layout of the poll a few times in quick succession. Is it possible, that I alone can crash the cache?
cheers, Bernie

Philipp Großelfinger

2022-09-23

It is weird and we do not understand it yet. Our fonts are in the aws cloudfront cache and this can be locally (for instance In Switzerland) different.

Tools

  • Voting
  • Surveys
  • Free Tables
  • Collect Ideas and Feedback
  • Photo Contests
  • Video Contests
  • Music Contests
  • Landing Page
  • Pairwise Comparison
  • PollUnit Lab

Support

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

Tutorials

  • Create your first poll
  • Advanced poll features
  • Advanced survey branching logic
  • 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
  • Donations and participation fees

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