ladybird/Libraries/LibWeb/Fetch
Timothy Flynn 6539c72e7e LibWeb: Allow CORS requests from opaque origins to resource:// URLs
JavaScript module requests (in a non-worker context) always have CORS
enabled. However, CORS requests are only allowed for same-origin or
HTTP/S requests. This patch extends this to allow resource:// requests
from opaque origins (e.g. about: URLs).

We must also set the Access-Control-Allow-Origin header to "null" to
ensure that the response is accepted by the CORS checks. This does not
affect requesting resource:// URLs from resource:// URLs as those are
same-origin and skip CORS checks.

This ultimately enables requesting resource:// JS modules from the
about:settings page.
2025-04-23 19:58:58 -04:00
..
Fetching LibWeb: Allow CORS requests from opaque origins to resource:// URLs 2025-04-23 19:58:58 -04:00
Infrastructure LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
Body.cpp AK+LibURL+LibWeb: Use simdutf to validate ASCII strings 2025-04-06 11:05:58 -04:00
Body.h LibWeb/Fetch: Sync with spec update (whatwg/fetch#1569) 2025-01-30 16:24:50 -07:00
Body.idl
BodyInit.cpp LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
BodyInit.h LibWeb: Remove exception handling from safely extracting response bodies 2024-12-09 20:02:51 -07:00
BodyInit.idl
Enums.cpp
Enums.h
FetchMethod.cpp LibWeb: Move ReadableStream AOs into their own file 2025-04-18 06:55:40 -04:00
FetchMethod.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Headers.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
Headers.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Headers.idl
HeadersIterator.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
HeadersIterator.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Request.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
Request.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Request.idl
Response.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
Response.h LibGC+Everywhere: Factor out a LibGC from LibJS 2024-11-15 14:49:20 +01:00
Response.idl