alibaba / alibaba/anyproxy

用 fetch 请求时错误

Open
#58 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

错误信息如下,求解答

```
Fetch API cannot load http://127.0.0.1:8001/api/app/5715e829a14a74d2227b98f6. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the fetch request from http://localhost:3000 and inspect the preflight response from http://127.0.0.1:8001/api/app/5715e829a14a74d2227b98f6. The issue provides no source file, test, or proxy configuration; done would require identifying the missing CORS handling and verifying that the request succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.