[Webkit-unassigned] [Bug 229515] [curl] REGRESSION(r281158): fetch('http://localhost/') from about:blank doesn't emit the console error message

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 25 14:13:44 PDT 2021


--- Comment #1 from Fujii Hironori <Hironori.Fujii at sony.com> ---
1. Start WinCairo WK2 MiniBrowser
2. Open a local file.  Go to file:///.../something.html
3. Open Web Inspector Console
4. Start a local web server
   Invoke "python.exe .\Tools\Scripts\run-webkit-httpd" as admin
5. Invoke "fetch('http://localhost:8000/')" in the Web Inspector console

Expected: the following error message should be shown

> > fetch('http://localhost:8000/')
> < Promise {status: "pending"}
> [Error] Origin null is not allowed by Access-Control-Allow-Origin.
> [Error] Fetch API cannot load http://localhost:8000/ due to access control checks.
> [Error] Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin. (localhost, line 0)

Actual: No such error message

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210825/80d5bc89/attachment.htm>

More information about the webkit-unassigned mailing list