Solved: Link URL’s domain is not in list of downloadable_domains in env.php in Magento 2
Ever faced an error in Magento while migrating or staging effect that says:
“Link URL’s domain is not in list of downloadable_domains in env.php.”
This is a common error usually observed during the migration or staging process.
An eCommerce business must be regularly upgraded to enable new functionalities, improve user experience and security. So, every Magento store owners are in the race of migrating their stores from Magento 1 to Magento 2 or upgrading to the latest Magento version.
The downloadable domains is the list of the domains white-listed for the downloadable products. The mentioned error is displayed when the domain of the downloadable product URL is not included in the env.php file under the ‘downloadable_domains’.
This generally occurs during the store upgradation and migration process. As a result, the Magento store owners may get frustrated and may not able to deal with the downloadable products on their store.
The Solution to Link URL’s domain is not in list of downloadable_domains in env.php:
Provided here is the complete solution to the ‘Link URL’s domain is not in list of downloadable_domains in env.php in Magento 2’ error.
There are two ways in which the error can be resolved which are as follows:
Open app/etc/env.php file
add the domain in “downloadable_domains” array
Or
php bin/magento downloadable:domains:add domain_that_you_want_to_add
That’s it.
Please mention any doubts about the error in the Comments section below. I’d be happy to help.
Also, I’d be grateful if you could share the solution with the Magento Community via social media.
Thank you.
Jignesh Parmar
An expert in his field, Jignesh is the team leader at Meetanshi and a certified Magento developer. His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover.
Prev
How to Setup Google Analytics with Cloudflare Zaraz [2024]
Rising Trend of Subscription Model in eCommerce [2024]
Next