1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00
ladybird/Libraries/LibWeb/Loader
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
..
ContentFilter.cpp LibWeb/Loader: Add filtering_enabled flag in ContentFilter 2025-03-10 12:30:21 +00:00
ContentFilter.h LibWeb/Loader: Add filtering_enabled flag in ContentFilter 2025-03-10 12:30:21 +00:00
FileRequest.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
FileRequest.h LibWeb+LibGC: Import GC swift module into LibWeb and an initial user 2025-04-03 16:47:48 -06:00
GeneratedPagesLoader.cpp LibURL+LibWeb: Remove leading slash when converting url to path 2025-04-10 19:04:21 -06:00
GeneratedPagesLoader.h LibWeb+WebContent: Remove "chrome" from generated page template strings 2025-03-15 19:57:27 -04:00
LoadRequest.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
LoadRequest.h LibWeb: Avoid URL validity check for 'Resource' 2025-04-19 07:18:43 -04:00
ProxyMappings.cpp Everywhere: Remove some use of the URL constructors 2025-02-19 08:01:35 -05:00
ProxyMappings.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Resource.cpp LibWeb: Avoid URL validity check for 'Resource' 2025-04-19 07:18:43 -04:00
Resource.h LibWeb: Avoid URL validity check for 'Resource' 2025-04-19 07:18:43 -04:00
ResourceLoader.cpp LibWeb: Allow CORS requests from opaque origins to resource:// URLs 2025-04-23 19:58:58 -04:00
ResourceLoader.h LibWeb+LibWebView+UI: Migrate to LibWebView's language settings 2025-04-04 10:16:32 +02:00
UserAgent.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00