akkoma/test/pleroma/web
@r3g_5z@plem.sapphic.site 0e4c201f8d HTTP header improvements (#294)
- Drop Expect-CT

Expect-CT has been redundant since 2018 when Certificate Transparency became mandated and required for all CAs and browsers. This header is only implemented in Chrome and is now deprecated. HTTP header analysers do not check this anymore as this is enforced by default. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT

- Raise HSTS to 2 years and explicitly preload

The longer age for HSTS, the better. Header analysers prefer 2 years over 1 year now as free TLS is very common using Let's Encrypt.
For HSTS to be fully effective, you need to submit your root domain (domain.tld) to https://hstspreload.org. However, a requirement for this is the "preload" directive in Strict-Transport-Security. If you do not have "preload", it will reject your domain.

- Drop X-Download-Options

This is an IE8-era header when Adobe products used to use the IE engine for making outbound web requests to embed webpages in things like Adobe Acrobat (PDFs). Modern apps are using Microsoft Edge WebView2 or Chromium Embedded Framework. No modern browser checks or header analyser check for this.

- Set base-uri to 'none'

This is to specify the domain for relative links (`<base>` HTML tag). pleroma-fe does not use this and it's an incredibly niche tag.

I use all of these myself on my instance by rewriting the headers with zero problems. No breakage observed.

I have not compiled my Elixr changes, but I don't see why they'd break.

Co-authored-by: r3g_5z <june@terezi.dev>
Reviewed-on: AkkomaGang/akkoma#294
Co-authored-by: @r3g_5z@plem.sapphic.site <june@terezi.dev>
Co-committed-by: @r3g_5z@plem.sapphic.site <june@terezi.dev>
2022-11-20 21:20:06 +00:00
..
activity_pub automatically trim loading *. prefixes on domain blocks 2022-11-07 22:33:18 +00:00
admin_api Add fallback for reports that don't have attached activities 2022-11-08 11:01:47 +00:00
akkoma_api Backend settings sync (#226) 2022-10-06 16:22:15 +00:00
api_spec Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
auth Create WrapperAuthenticator and simplify Authenticator behaviour 2021-06-07 18:18:39 -05:00
common_api make conversation-id deterministic (#154) 2022-08-06 20:59:15 +00:00
feed UserController: fall back to frontend when user isn't found 2021-08-17 18:32:32 -05:00
mastodon_api Include requested_by in relationship (#260) 2022-11-10 03:16:32 +00:00
media_proxy Use uppercase HTTP HEAD method for media preview proxy request (#128) 2022-07-30 21:58:14 +00:00
metadata Metadata/Utils: use summary as description if set 2022-09-11 19:55:38 +01:00
o_auth Fix tests in ldap registration 2022-11-01 14:21:35 +00:00
o_status Pleroma.Web.base_url() --> Endpoint.url() 2021-12-25 20:11:14 -06:00
pleroma_api Make backups require its own scope (#218) 2022-09-19 17:31:35 +00:00
plugs HTTP header improvements (#294) 2022-11-20 21:20:06 +00:00
preload/providers Remove precompiled javascript (#55) 2022-07-08 13:03:18 +00:00
push Push.Impl: support edits 2022-10-28 01:20:19 -04:00
rich_media make search provider configurable 2021-12-12 17:35:35 +00:00
static_fe Pipeline Ingestion: Note 2021-04-05 19:19:11 +02:00
twitter_api Remote interaction with posts (#198) 2022-09-08 10:19:22 +00:00
views Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
web_finger Support reaching user@sub.domain.tld at user@domain.tld (#134) 2022-08-02 13:54:22 +00:00
common_api_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
fallback_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
federator_test.exs fix tests 2022-08-11 19:21:43 +01:00
gettext_test.exs Fix incorrect fallback when English is set to first language 2022-06-29 20:47:10 +01:00
manifest_controller_test.exs Expose /manifest.json for PWA 2021-11-24 17:50:55 -06:00
masto_fe_controller_test.exs API compatibility with fedibird, frontend config (#163) 2022-08-17 00:22:59 +00:00
media_proxy_test.exs Merge remote-tracking branch 'pleroma/develop' into cycles-base-url 2021-05-31 16:49:46 -05:00
mongoose_im_controller_test.exs Change user.deactivated field to user.is_active 2021-01-15 11:24:46 -06:00
node_info_test.exs expose bubble instances via nodeinfo (#136) 2022-08-02 09:11:22 +00:00
rel_me_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
streamer_test.exs Scrape instance nodeinfo (#251) 2022-11-06 22:49:39 +00:00
uploader_controller_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
web_finger_test.exs Support reaching user@sub.domain.tld at user@domain.tld (#134) 2022-08-02 13:54:22 +00:00