0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-12 05:37:26 +08:00
discourse/spec
Kelv 305039b1c3
DEV: ensure Rails application default headers are present in responses (#31619)
Follow up from https://github.com/discourse/discourse/pull/31559.

We expect some standard headers to be added from
`Rails.application.config.action_dispatch.default_headers` for
responses, however these were found to be removed in some error paths. 
For more detail on this behaviour, refer to https://github.com/discourse/discourse/pull/31619#issuecomment-2699644232.

This PR adds those headers back if they aren't there, with the caveats
that we don't add headers that are irrelevant for non-HTML responses,
and neither do we add X-Frame-Options which is intentionally removed for
embeddables.
2025-03-05 13:19:09 +08:00
..
fabricators FIX: Improvements for uploads:disable_secure_uploads task (#31231) 2025-02-10 14:37:42 +10:00
fixtures FIX: Allow oneboxes with no description (#31518) 2025-02-26 13:16:51 +10:00
generator DEV: Silence the output of migration specs (#26365) 2024-03-26 11:32:44 +01:00
helpers SECURITY: Preload data only when rendering application layout 2025-02-04 13:32:30 -03:00
import_export DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
initializers DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
integration FEATURE: Display the Watched Words that caused a post to be flagged. (#31435) 2025-03-04 17:22:12 +11:00
integrity FIX: cross origin opener policy should apply to public error responses (#31559) 2025-03-03 17:04:24 +08:00
jobs DEV: Log site setting changes from the rails console (#31353) 2025-02-24 14:57:01 -07:00
lib FEATURE: Store composer version and device info on post stat (#31600) 2025-03-05 12:48:32 +10:00
mailers FEATURE: add support for One-Click unsubscribe (RFC 8058) 2024-12-31 15:28:59 +01:00
migrations DEV: update fa6 icons to drop fa prefix (#30100) 2024-12-05 10:00:41 +08:00
models DEV: Store selected API key scope mode in the database table (#31601) 2025-03-04 16:41:43 +08:00
multisite FIX: Include original filename in s3 uploads even if not attachment (#30789) 2025-01-15 18:08:18 +08:00
requests DEV: ensure Rails application default headers are present in responses (#31619) 2025-03-05 13:19:09 +08:00
script/import_scripts DEV: Catch missing translations during test runs (#26258) 2024-05-24 22:15:53 +08:00
serializers FIX: Ensure queued posts with watched words are processed correctly. (#31641) 2025-03-05 13:59:42 +11:00
services FIX: Ensure queued posts with watched words are processed correctly. (#31641) 2025-03-05 13:59:42 +11:00
support Revert "DEV: Add rake task to bulk delete posts" (#31607) 2025-03-04 20:54:03 +08:00
system FEATURE: rebranded admin logos settings (#31554) 2025-03-04 12:51:27 +11:00
tasks DEV: Add rake task to bulk delete posts (#31642) 2025-03-05 09:31:23 +08:00
views FEATURE: Simplify crawler content for non-canonical post URLs (#26324) 2024-03-26 15:18:46 +00:00
rails_helper.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
regenerate_swagger_docs
swagger_helper.rb DEV: Bump rswag-specs from 2.11.0 to 2.13.0 (#24654) 2023-12-07 08:16:47 +08:00