In our application(Deployed in IIS), we have enabled only HTTPS(Disabled HTTP access).
While accessing API endpoint using http protocol with OPTIONS verb, its returning 200 Ok response. How to fix?
You can try to disable the OPTIONS verb in IIS, the steps are as follows:
OPTIONS verb
Start the IIS Manager, double-click to open the Request Filtering module, select HTTP Verbs, select Deny Verb… on the right, enter OPTIONS and click OK.
Request Filtering module
HTTP Verbs
Deny Verb…
OPTIONS
Disable OPTIONS Verb
Copyright © 2021 Jogjafile Inc.
You can try to disable the
OPTIONS verbin IIS, the steps are as follows:Start the IIS Manager, double-click to open the
Request Filtering module, selectHTTP Verbs, selectDeny Verb…on the right, enterOPTIONSand click OK.Disable OPTIONS Verb