フラスコを使用しています。サーバーが取得する可能性のある OPTIONS 要求に「Accept-Patch」応答を追加する方法がわかりません。
それは次のようなものでしょうか (私はこれを試しましたが、うまくいきましたが、これが許可されているかどうかはわかりません):
class MyViewMixin(MethodView):
def options(self, id):
response = make_response('This works!', 200)
response.headers.extend({'Accept-Patch': '*'})
return response
def get(self, id): #same for post, delete, put, patch
#stuff here#
助けてくれてありがとう。