Skip to content

Options * example not working #140

Answered by clue
pfk84 asked this question in Q&A
Apr 8, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

@pfk84 This is an interesting one, thanks for bringing this up!

The OPTIONS * request is supported just fine by X and is covered both by unit tests and additional integration tests. In particular, this is also verified on different web servers as part of our CI setup:

out=$(curl -v $base -X OPTIONS --request-target "*" 2>&1); skipif "Server: nginx" && match "HTTP/.* 200" # skip nginx (400)

To the best of my knowledge, this works just fine across different web servers. Only nginx is known to reject OPTIONS * requests with a 400 Bad Request response, so these requests would never even end up being passed to X. See also th…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@pfk84
Comment options

@clue
Comment options

clue Apr 10, 2022
Maintainer

@pfk84
Comment options

@clue
Comment options

clue Aug 14, 2022
Maintainer

Answer selected by pfk84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #139 on April 08, 2022 10:08.