Image link doesn't saved in create product method in API

This image link is generated on our server. And I need to understand the reason why the error occurs when requesting Anchor to section titled ‘POST request, Create a new Product Image’, but also the error occurs when loading a link on the site through the personal account. “Refused to load the image ‘https://devbackend.humbler.co:4098/assets/uploads/events/test.jpeg’ because it violates the following Content Security Policy directive: “default-src ‘self’ data: blob: https ://* shopify-pos://*”. Note that ‘img-src’ was not explicitly set, so ‘default-src’ is used as a fallback.” But any links from google works good and image is loaded in this methods.

I need to understand what is wrong with my image link and pass this link in the POST request, Create a new Product Image when creating a product via api.

1 Like

Hi [email removed]veronikuznetsov - thanks for getting in touch. I did encounter an error when I tried to replicate the POST in an API client on my test store. I had a hunch that specifying the port (:4098) could have resulted in Shopify not considering the URL as valid. I removed the port and was able to upload the test image correctly.

Can you let me know if this method works for you? Hope this helps!

Thank you very much!!! It’s work!!!