Skip to content

Conversation

@alexanderfrankel
Copy link

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!

@alexanderfrankel
Copy link
Author

Looks like this could be a dup of #18.

I can probably help out with some specs if needed. Also, if the interception is needed, can you please explain. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant