upstream image response failed for 403 nextjs
Unanswered
Entlebucher Mountain Dog posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Entlebucher Mountain DogOP
![Image](https://cdn.discordapp.com/attachments/1205011726010163211/1205011726572191784/Screenshot_from_2024-02-08_10-46-09.png?ex=65d6d19f&is=65c45c9f&hm=508e2057000ded13075e877e34c9e1d70ec694d54d4a52215c9b11c2398706c7&)
6 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Crazy ant
Did you add your image domain in to next.config.js file.
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Entlebucher Mountain DogOP
yes i did
by default it will accept all domains url
by default it will accept all domains url
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Crazy ant
could you send snapshot of next.config.js. only that part where image domian is added.
nextjs does not accept all domain url by default
![Avatar](https://cdn.discordapp.com/embed/avatars/5.png)
Entlebucher Mountain DogOP
/ @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "http",
hostname: "",
},
{
protocol: "https",
hostname: "**",
},
],
},
output: "standalone",
};
module.exports = nextConfig;
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "http",
hostname: "",
},
{
protocol: "https",
hostname: "**",
},
],
},
output: "standalone",
};
module.exports = nextConfig;
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Crazy ant
For external images you should consider proxy like cloudinary.com etc. better to mention specific hostname and protocol as https. are you fetching images from an external source? Your configuration should also work, just remove the object with http and keep https one if you are fetching images from an external source.