Claude artifact images not loading: why and how to fix it
Images from outside hosts show as broken in a Claude artifact. It's the sandbox, not CORS. The cause, the fixes, and how to publish the HTML so they load.
The Liite team7 dk okuma
Short answer
Claude runs artifacts in a sandboxed frame that blocks external image hosts, so remote images break no matter what headers the host sends. Copy the artifact's code into an index.html file and publish it on a normal web host, ideally with the images bundled next to it. Outside the sandbox, ordinary <img> tags load as usual.
You asked Claude for a page, it wrote HTML with images pulled from other sites, and the preview shows broken image icons. The browser console lists the image requests as blocked. If you searched for "claude artifact images not loading", this is almost certainly why.
Why it happens
The sandbox blocks external image hosts
Artifacts render inside a sandboxed frame that limits what the page may request. External image hosts are among the things that get blocked. People on the Claude community forum report seeing the block in the browser console. The exact rule set is Anthropic's and can change, so treat this as the current reported behavior, not a guarantee.
It is not a CORS problem
CORS is the first thing most people try, and it is the wrong suspect. A plain <img src="https://..."> does not need CORS headers to display in a normal page. People report that adding CORS headers to the image host did nothing, which fits: the request is stopped by the sandbox's own rules before the host's response matters.
Other causes that look the same
Not every broken image is the sandbox. Check these before you change anything:
- The URL is not a direct image file (it points to a web page that contains the image).
- The link is private, expired, or needs a login.
- The host refuses hotlinking and returns an error or a placeholder.
- Claude invented the URL, so the file never existed.
We don't know whether Anthropic will loosen the sandbox rules. As of November 2026 we have no confirmed change, and artifact behavior can change without notice. Check the console on your own artifact and look at Claude's help center for current notes.
How to tell which cause you have
| Symptom | Likely cause | Fix |
|---|---|---|
| Broken in the artifact, loads in its own browser tab | Sandbox blocks the host | Move the HTML out of the artifact |
| Broken everywhere, including its own tab | Bad, private, or invented URL | Replace the image |
| Loads on your machine, broken for others | Login-only or hotlink-protected image | Use a copy you control |
| Works until you ask Claude to edit | Upload input data wiped on regeneration | Bundle the images in the file or zip |
| Console shows a blocked request | Sandbox rules | Publish outside the artifact |
Step-by-step fixes
Fix 1: Check the image URLs
- Copy each image URL from the HTML.
- Paste it into a new browser tab.
- If it does not show the image there, the link is the problem. Replace it with a direct link to the image file, or use your own copy.
Fix 2: Take the HTML out of the artifact
- Open the artifact and choose the option to view or copy its code.
- Paste the full code into a plain text file.
- Save it as
index.html. - Double-click the file to open it in your browser. Images from reachable URLs should now appear, because the page is no longer inside the sandbox.
Fix 3: Bundle the images with the page
Relying on someone else's server is fragile even outside the sandbox. For anything you want to keep:
- Download each image into a folder next to
index.html, for exampleimages/. - In the HTML, change each source to a relative path such as
images/photo.jpg. - Open
index.htmllocally and confirm every image shows. - Zip the folder contents, with
index.htmlat the top level or inside a single wrapper folder.
Tip
Ask Claude to rewrite the page "using relative image paths in an images/ folder" and give you a list of the file names it expects. You then know exactly which files to download or create.
Fix 4: Publish it
Upload the file or zip to a host that serves static files. Then test the live address in a private window and on your phone, and confirm every image appears. The next section covers one way to do this.
What won't help
- Adding CORS headers to the image host. Reportedly no effect, because the sandbox does the blocking.
- Switching to another image host. The sandbox restricts external hosts in general, so another one is likely blocked too.
- Asking Claude to "fix the CORS". There is nothing to fix on the page side while the page stays inside the sandbox.
- An upload input inside the artifact. It is the workaround people use, and it works for a session, but the uploaded image is wiped each time the artifact regenerates, so you re-upload after every edit.
Warning
Don't paste secret keys or private image links into HTML you publish. Anything in the page source is visible to every visitor.
Checklist before you try again
- Every image URL opens on its own in a browser tab, or the file is in your folder.
- Image paths in the HTML are relative (
images/photo.jpg) for files you bundled. - The file is named
index.html, at the top of the zip or inside one wrapper folder. - The page works as plain HTML, CSS and JavaScript, with no server-side code.
- You tested the published address in a private window and on a phone.
Publish it on Liite
Liite's uploaded sites take a single .html file, a .zip or a folder and serve it at its own <slug>.liite.site address. Your HTML and JavaScript run there, outside the artifact sandbox, so external images and images from your own upload load as on an ordinary site. A zip with index.html at the top level, or inside one wrapper folder, works. Uploading again keeps the same address, and old versions are kept for rollback.
A Free uploaded site is limited to 3 MB unpacked, needs a card on file to publish, goes offline 7 days after the last publish, and is always noindex. Pro and up raise the size limit (25 MB on Pro) and remove the expiry. Liite doesn't run server-side code, so the page has to work as plain HTML, CSS and JavaScript.
See how to put an HTML file, zip or PDF online for the steps, the uploaded sites docs, or free HTML hosting. You can also sign up at Liite.
If nothing works
If images still fail after you moved the page out of the artifact, the problem is the image source or the host. If they fail inside the artifact only, contact Anthropic support through Claude's help center. Include:
- the exact console message for a blocked image;
- one example image URL, and whether it opens in its own tab;
- the date and time, and the browser you used;
- what you already tried (copying the code out, relative paths).
Subject: External images blocked in a Claude artifact
Hi, images loaded from external URLs show as broken in my artifact preview.
The browser console shows the requests as blocked. Adding CORS headers on
the image host made no difference, and the same image opens fine in its own
browser tab.
Example URL: <paste one image URL>
Browser and version: <e.g. Chrome 130>
Date and time: <when you saw it>
Is loading external images in artifacts supported, and is there a setting
or recommended alternative? Thank you.Common questions
Why do the images load when I open the HTML file myself?
Opened from your disk or a web host, the page is no longer inside the artifact sandbox. The browser then treats <img> tags like on any other site.
Is it safe to hotlink images from other sites?
It works until the owner moves the file, blocks hotlinking, or removes it. For anything you plan to keep, download the images and bundle them with the page.
Will Anthropic fix this?
We don't know. We have no confirmed change as of November 2026, and artifact behavior can change without notice, so check Claude's help center for current notes.
Do I need to know how to code to publish the page?
No. You need a file named index.html and, if you bundle images, a zip of the folder. Claude can tell you which image files the page expects.