Explicitly returning a 200 response code when env["REQUEST_METHOD"] == OPTIONS can introduce a dependency in the order an application's middleware is executed.
Specifically, if a different intended response for an OPTIONS request is implemented (like a 405) in another piece of middleware, it MUST come before font_assets middleware in the stack or it will never get executed.
Happy to discuss further : ) and apologies if I am missing the reason why this OPTIONS request interception if necessary for font_assets to work properly. Please enlighten! Thanks!
Explicitly returning a 200 response code when
env["REQUEST_METHOD"] == OPTIONS
can introduce a dependency in the order an application's middleware is executed.Specifically, if a different intended response for an OPTIONS request is implemented (like a 405) in another piece of middleware, it MUST come before
font_assets
middleware in the stack or it will never get executed.Happy to discuss further : ) and apologies if I am missing the reason why this OPTIONS request interception if necessary for
font_assets
to work properly. Please enlighten! Thanks!