openclaw - 💡(How to fix) Fix Control UI theme import from tweakcn fails with 'Failed to fetch' (CORS) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#77077Fetched 2026-05-05 05:52:41
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
2
Timeline (top)
closed ×1commented ×1

The Control UI's Appearance > Import feature fails when trying to import a tweakcn theme. All input formats result in "Failed to fetch":

  • Full URL: https://tweakcn.com/themes/cmlhfpjhw000004l4f4ax3m7z
  • Registry URL: https://tweakcn.com/r/themes/cmlhfpjhw000004l4f4ax3m7z
  • Theme ID: cmlhfpjhw000004l4f4ax3m7z

Root Cause

The Control UI's Appearance > Import feature fails when trying to import a tweakcn theme. All input formats result in "Failed to fetch":

  • Full URL: https://tweakcn.com/themes/cmlhfpjhw000004l4f4ax3m7z
  • Registry URL: https://tweakcn.com/r/themes/cmlhfpjhw000004l4f4ax3m7z
  • Theme ID: cmlhfpjhw000004l4f4ax3m7z
RAW_BUFFERClick to expand / collapse

Description

The Control UI's Appearance > Import feature fails when trying to import a tweakcn theme. All input formats result in "Failed to fetch":

  • Full URL: https://tweakcn.com/themes/cmlhfpjhw000004l4f4ax3m7z
  • Registry URL: https://tweakcn.com/r/themes/cmlhfpjhw000004l4f4ax3m7z
  • Theme ID: cmlhfpjhw000004l4f4ax3m7z

Investigation

The registry endpoint https://tweakcn.com/r/themes/cmlhfpjhw000004l4f4ax3m7z returns valid JSON (200 OK) when fetched server-side. The browser fetch from 127.0.0.1 appears to be blocked by CORS — tweakcn.com likely doesn't include Access-Control-Allow-Origin headers that permit cross-origin requests from localhost.

Expected behavior

Theme import should succeed. If tweakcn doesn't support CORS, the fetch could be proxied through the gateway instead of fetched directly from the browser.

Environment

  • OpenClaw 2026.5.2
  • macOS (Apple M2 Max)
  • Gateway running on 127.0.0.1:18789
  • Browser: Arc/Chrome

Related

  • openclaw/openclaw#77048 (broken "Browse tweakcn themes" link — 404)

🦞 Filed via OpenClaw agent

extent analysis

TL;DR

Proxy the theme fetch through the gateway to bypass CORS restrictions.

Guidance

  • Verify that the https://tweakcn.com/r/themes/cmlhfpjhw000004l4f4ax3m7z endpoint returns valid JSON when fetched server-side to ensure the issue is indeed CORS-related.
  • Configure the gateway to proxy requests to tweakcn.com to allow cross-origin requests from localhost.
  • Update the Control UI's Appearance > Import feature to fetch themes through the gateway proxy instead of directly from the browser.
  • Test the theme import feature with the proxied fetch to ensure it succeeds.

Example

No code example is provided as the issue does not contain sufficient information about the implementation details.

Notes

This solution assumes that the gateway can be configured to proxy requests to tweakcn.com and that the Control UI's Appearance > Import feature can be updated to use the proxied fetch.

Recommendation

Apply workaround: Proxy the theme fetch through the gateway, as it is unlikely that tweakcn.com will add the necessary CORS headers to support cross-origin requests from localhost.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Theme import should succeed. If tweakcn doesn't support CORS, the fetch could be proxied through the gateway instead of fetched directly from the browser.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Control UI theme import from tweakcn fails with 'Failed to fetch' (CORS) [1 comments, 2 participants]