On chromium, extraHeaders permission is needed for sanitization
Please note the following tips
- Is there already an existing issue? (Search for the URL, e.g. "codeberg.org" or "localcdn.org")
- For the most common problems and solutions I have created an online tool. Please test the broken website there: https://www.localcdn.org/test/check
I did a code review to find this issue
If none of the points apply
- Without the
extraHeaderspermission, on chromium, the Origin and Referer header are not exposed.
- If the permission is added on Firefox, it will fail to register the listener.
- The relevant code is at https://codeberg.org/nobody/LocalCDN/src/branch/main/core/request-sanitizer.js#L28-L44
Thanks for the information 👍
Annoying that Chromium has to do something different here again. Anyway, I added a small switch that loads a different extraInfoSpec array for all non-Firefox browsers.
Note: Specifying 'extraHeaders' in opt_extraInfoSpec may have a negative impact on performance, hence it should only be used when really necessary.
Deleting a branch is permanent. It CANNOT be undone. Continue?