David Taylor
ecf7a4f0c6
FIX: Ensure app-cdn CORS is not overridden by cors_origin setting ( #24661 )
...
We add `Access-Control-Allow-Origin: *` to all asset requests which are requested via a configured CDN. This is particularly important now that we're using browser-native `import()` to load the highlightjs bundle. Unfortunately, user-configurable 'cors_origins' site setting was overriding the wldcard value on CDN assets and causing CORS errors.
This commit updates the logic to give the `*` value precedence, and adds a spec for the situation. It also invalidates the cache of hljs assets (because CDNs will have cached the bad Access-Control-Allow-Origin header).
The rack-cors middleware is also slightly tweaked so that it is always inserted. This makes things easier to test and more consistent.
2023-12-01 12:57:11 +00:00
..
2023-11-09 16:47:59 -06:00
2023-11-29 16:38:07 +11:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-11-29 14:18:47 -06:00
2023-01-09 11:49:28 +00:00
2023-10-05 15:22:43 -04:00
2023-11-28 07:34:02 -07:00
2023-11-09 16:47:59 -06:00
2023-06-26 11:41:52 +02:00
2023-06-16 15:28:03 +01:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-05-24 08:59:37 +08:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-11-29 16:38:07 +11:00
2023-03-22 14:43:32 +00:00
2023-11-09 13:39:18 +11:00
2023-11-30 10:53:17 +10:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-16 09:08:44 +11:00
2023-11-09 16:47:59 -06:00
2023-08-01 13:53:23 +02:00
2023-11-16 12:37:05 +10:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-02 08:10:15 +03:00
2023-11-09 16:47:59 -06:00
2023-11-10 14:27:35 +11:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-27 12:48:48 +11:00
2023-11-09 16:47:59 -06:00
2023-02-01 09:55:21 +00:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-11-06 15:57:00 +00:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-10 00:44:05 +04:00
2023-08-24 16:36:22 +02:00
2023-06-26 13:16:03 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-11-23 00:57:12 +01:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-13 10:34:06 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-28 09:07:53 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-12-01 15:03:06 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-08-02 10:46:37 +08:00
2023-06-26 10:09:57 +05:30
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-12-01 12:57:11 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-29 16:38:07 +11:00
2023-11-06 18:03:32 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-08-02 10:46:37 +08:00
2023-01-09 11:49:28 +00:00
2023-01-16 17:28:59 +00:00
2023-11-29 16:38:07 +11:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-08-08 11:18:55 +10:00
2023-01-09 11:49:28 +00:00
2023-04-11 10:16:28 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-29 16:38:07 +11:00
2023-06-26 11:41:52 +02:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-10 20:39:48 +00:00
2023-03-30 13:52:10 +10:00
2023-08-10 02:03:38 +02:00
2023-06-26 11:01:59 +08:00
2023-11-09 16:47:59 -06:00
2023-12-01 15:03:06 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-29 16:38:07 +11:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-11-20 10:43:58 +10:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-10 10:46:28 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-10-02 12:36:06 +02:00
2023-03-06 11:41:47 +03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-02-28 14:31:59 +02:00
2023-06-26 11:41:52 +02:00
2023-11-21 11:31:42 -07:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-02-07 15:28:59 -03:00
2023-10-16 10:34:38 -04:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-01-09 11:49:28 +00:00
2023-11-09 16:47:59 -06:00
2023-11-09 16:47:59 -06:00
2023-11-22 15:19:40 +10:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-09-12 15:31:31 -03:00
2023-07-28 12:53:51 +01:00