Fetch does not work with my account
Hello, I don't get why /fetch work with the demo account and not mine. For example with this one:
https://res.cloudinary.com/demo/image/fetch/https://theme.zdassets.com/theme_assets/261010/0d0f04d045b80bfc06b82fd855d0e61fac6470d4.png
it works well with demo but not my account. I did not find anything helpful in my account settings.
-
Hi Victor,
If you look at the `x-cld-error` header of the response when you try to access a `/fetch/` URL in your account, you will most likely see that the error text is `Images of type fetch are restricted in this account`
For security reasons, the `fetch` resource type is restricted on new accounts by default.
There are two options you can use to resolve this:
* Go into the [security settings of the management console](https://cloudinary.com/console/settings/security) and remove the checkbox that restricts the 'fetch' type, then save the settings
* Use our SDK to create a [signature for the URL](https://cloudinary.com/documentation/signatures) or use the API to request that image is fetched, either of which indicates that the request came from your code and will allow the fetch to proceed.Please let me know if that helps - if that's not the issue, may I ask you you to send a support request with the details?
1 -
Thanks, I had the same problem and now it's fixed.
Also, don't forget to whitelist the domain you are fetching from by adding it in `Allowed fetch domains`.
0
Post is closed for comments.
Comments
2 comments