I'm developing NextJS app with custom server by ExpressJS, and the app cannot show external image, code example:
export function DocumentSection({content}) {
return (
<section className={styles.documentSection}>
<div className={`${styles.container} container`}>
<div className={styles.docNav}>
</div>
<img src='https://https://abc.xyz/example.png'/>
</div>
</section>
);
};
Error: "GET https://abc.xyz/example.png net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200"
Everything work normally if I using only next dev
if you have
helmet
middleware on the server you should remove it or rather use these simple configuration.