Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove options http method interception #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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