This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Send Access-Control-Max-Age header #9669
Labels
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Description:
If synapse sent an Access-Control-Max-Age header with its CORS responses, user agents could cache the CORS response and wouldn't need to do an OPTIONS request for every single /sync request. Even caching for 60s could massively reduce the number of requests on a busy account, but it would probably make sense for it to be a config option.
Context: all C/S API requests need to be preflighted if they send the access token using the
Authorization
header (even GET requests) becauseAuthorization
is not in the standard set of allowed headers.The text was updated successfully, but these errors were encountered: