discourse/lib/middleware
Krzysztof Kotlarek a036aacbed
DEV: Add country code to browser pageview payloads (#39681)
This adds country_code to the browser pageview event payload emitted by
RequestTracker.

The value is resolved in core using
DiscourseIpInfo.get(data[:request_remote_ip])[:country_code], so both
normal browser pageview events and beacon pageview events can persist
the visitor country when the browser pageview events plugin handles
them.
2026-05-01 12:21:58 +08:00
..
anonymous_cache.rb DEV: Fix AnonymousCache for pitchfork in dev/test modes (#37852) 2026-02-17 09:12:02 +00:00
crawler_hooks.rb PERF: Skip locale param rewriting for upload paths in CrawlerHooks (#39611) 2026-04-28 13:31:52 -03:00
csp_script_nonce_injector.rb DEV: Memoize CSP nonce placeholder on response (#25724) 2024-02-16 12:15:55 +00:00
default_headers.rb DEV: ensure Rails application default headers are present in responses (#31619) 2025-03-05 13:19:09 +08:00
discourse_public_exceptions.rb SECURITY: Error responses missing Cache-Control header 2025-10-28 14:40:41 +08:00
enforce_hostname.rb DEV: Simplify CORS logic for public asset routes (#33106) 2025-06-09 08:58:27 +01:00
missing_avatars.rb DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
omniauth_bypass_middleware.rb FIX: 'destination_url' cookie handling (#33072) 2025-08-06 10:09:01 +02:00
overload_protections.rb PERF: Reject anonymous requests with 503 upon aggressive queuing (#36519) 2025-12-18 10:23:42 +08:00
processing_request.rb PERF: Reject anonymous requests with 503 upon aggressive queuing (#36519) 2025-12-18 10:23:42 +08:00
request_tracker.rb DEV: Add country code to browser pageview payloads (#39681) 2026-05-01 12:21:58 +08:00