• I’ve got a strange issue with my website

    https://www.petit-planet.com

    If I visit the website on a desktop pc, the category icons and the slider arrow images wont load or showup

    but if I visit the site on the iphone the category icons and slider arrows are working poifectly.

    Any ideas what this might be causing?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Not sure why it’s working on your phone (perhaps the Safari browser on your iPhone isn’t as strict), but the problem is that all of your resources (including javascript files and the font files which supply the icons that you’ve noticed are missing) are loading from https://petitplanet.sakura.ne.jp and not https://www.petit-planet.com. Not sure how you got that to happen, but I’m guessing you’re trying to move from one site domain to another. For security reasons, many modern browsers prevent resources from external sites from loading. For more information, do a search on cross-origin resource sharing.

    Thread Starter Papigiulio

    (@papigiulio)

    Damn, this means my referral is messed up.

    Actually (since this is a Japanese host) im quite confused on how they handle their stuff. It took me a week to set up the current domain but apparently some things still work out. I’m afraid by messing with the current settings the site will go offline.

    Without messing with the domain is there a way to redirect all images to the sakura domain? Or do I need to hardcode that in the php files?

    I don’t know, although I’m pretty certain you don’t want to make the change in the .php files. I’m puzzled as to why some resources, like your stylesheets, are read OK from the external site but others, like the font files, are not. It’s probably explained somewhere in the documentation for CORS, but the reading is too deep for me to understand.

    Thread Starter Papigiulio

    (@papigiulio)

    Hah, yeah I tried reading the CORS articles but thats a bit too complicated for me. Guess Ill have to find another way. Thanks for the help though ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Some images don't work on desktop’ is closed to new replies.