ASU server: access to xmlhttprequest has been blocked by cors policy
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with the ASU server installation guide and trace the /api/v1/overview request that redirects to /json/v1/overview.json. Check how the server handles requests from the router origin and compare the browser request with the server response. Done means creating a new image works without the CORS or undefined-response errors.
Written by the indexing model from the issue text.
Description
I installed my own ASU server based on the guide here, but creating a new image doesn't work. I become the following error in the browser when I request an image:
Access to XMLHttpRequest at 'http://<server_IP>/api/v1/overview?1745428639689' from origin 'http://<router_IP>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET http://<server_IP>/api/v1/overview?1745428639689 net::ERR_FAILED 301 (Moved Permanently)
(anonymous) | @ | luci.js?v=25.111.775…4aa1d-1745362806:59
(anonymous) | @ | luci.js?v=25.111.775…4aa1d-1745362806:40
Promise.then
request | @ | luci.js?v=25.111.775…4aa1d-1745362806:40
get | @ | luci.js?v=25.111.775…4aa1d-1745362806:64
handleCheck | @ | overview.js?v=25.111…4aa1d-1745362806:21
eval | @ | ui.js?v=25.111.77565…aa1d-1745362806:368
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'ok')
at eval (overview.js?v=25.111.77565~1b4aa1d-1745362806:21:1728)
eval | @ | overview.js?v=25.111…4aa1d-1745362806:21
Promise.then |
handleCheck | @ | overview.js?v=25.111…4aa1d-1745362806:21
eval | @ | ui.js?v=25.111.77565…aa1d-1745362806:368
When I paste the 'http://<server_IP>/api/v1/overview?1745428639689' in the browser, then I become the result on the following url: 'http://<server_IP>/json/v1/overview.json'.
- Dominant language
- Python
- Stars
- 461
- Forks
- 116
- Avg merge
- 8d 30m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwrt/asu
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
Similar issues
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
docling-project/docling-core#1067 ·
Maintainers usually reply within 3 days
-
correction metadata
Difficulty 1/5 Under an hour Newbie friendliness 85/100
acl-org/acl-anthology#11101 · 1 comment ·
Maintainers usually reply within 1 day
-
[BUG] crewai tool create/install/login exit 0 when they failPossibly taken @Kiko0301 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vllm-project/compressed-tensors#1033 ·
Maintainers usually reply within 3 days
-
chore kaizen ui-rewrite
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
IBM/mcp-context-forge#7681 ·
Maintainers usually reply within 2 days