• Resolved sudhakarcool

    (@sudhakarcool)


    Hi Devs,

    I have changed my WordPress site images URL to a dedicated subdomain. In normal post composing, the images are showing correctly But in stories, the images during composing the story are not visible. Please help to resolve this bug ASAP.

    My Website URL is https://www.gearknowledge.com/

    You can see that I am hosting images to a dedicated cookieless subdomain i.e. https://static.gearknowledge.com/. And these images are not visible on the story composing screen.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @sudhakarcool and thanks for getting in touch. Can I just confirm that this is an issue with the images displaying in the Web Stories editor? If this is the case then it indicates that your CORS headers are not set up correctly.

    You will need to make sure that your CDN setup has the correct CORS configuration. Specifically, you need to set the following headers on your CDN:

    Access-Control-Allow-Origin headers
    Access-Control-Allow-Origin: *

    Please let me know if setting these fixes your issues. If this isn’t the case then please could you explain further the issue you are encountering.

    Thread Starter sudhakarcool

    (@sudhakarcool)

    Hi Adam,

    I am using the subdomain, not the CND for images. and I have done all the changes. You can see my website and all images are loading correctly. Also, this issue is with the stories editor section. Please help me in this.

    @sudhakarcool Thanks for confirming. I understand everything is working on the website. To help better understand the issue could you please provide the following information:

    1. Your Site Health information or You can share privately if you prefer via this form.
    2. What is the issue you are facing in the editor?
    3. Do you see any console errors while in the editor?

    It would also be helpful if you could provide any screenshots of recordings of what you are seeing. You can use services such as Imgur and Loom to do this.

    Plugin Author Pascal Birchler

    (@swissspidy)

    > I am using the subdomain, not the CND for images. and I have done all the changes.

    For what it’s worth, when I look at one of your images such as https://static.gearknowledge.com/2021/09/Macbook-Keyboard.jpg, I do not currently see any Access-Control-Allow-Origin header.

    You’d need to add that. Then the images will appear fine in the editor.

    You can test it yourself using a site such as https://cors-test.codehappy.dev/?url=https%3A%2F%2Fstatic.gearknowledge.com%2F2021%2F09%2FMacbook-Keyboard.jpg&method=get

    Thread Starter sudhakarcool

    (@sudhakarcool)

    Hi Guys,

    Thank you very much for your valuable input. so should I add these
    Access-Control-Allow-Origin to the .htaccess of this images subdomain? Please clarify this.

    Plugin Support Luckyna San

    (@luckynasan)

    @sudhakarcool That is correct. I recommend contacting your hosting provider for further assistance with setting up the correct CORS headers.

    Plugin Support Luckyna San

    (@luckynasan)

    @sudhakarcool We are going to mark your topic as resolved as we haven’t received a response. Please feel free to open a new support topic if you continue to experience any issues. Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘CND hosted images are not showing during composing.’ is closed to new replies.