Closed drandreaskrueger closed 2 years ago
OPTIONS
is not handled in any special way by bottle. HEAD
and ANY
are special, but OPTIONS
is just a normal HTTP method you have to explicitly bind to, if you need that. It is more important nowadays because of CORS mechanics, but CORS is best handled in a middleware or before_request
hook anyway. Then you would not have to worry about that anymore.
Why? LibreOffice
=WEBSERVICE()
beforeGET
always callsOPTIONS
andHEAD
first.Solved: Now, to get rid of the
405 error
, I only had to addmethod=['GET', 'HEAD', 'OPTIONS']
, like thiswhich is obvious now, but I had not been able to find it in the documentation ...
Suggestion: perhaps add OPTIONS to special methods.
Huge thanks for
bottle
by the way, using it often, since testing it to be the best, back then (warning: OUTDATED!).