Custom HTTP methods on Windows Servers
Only when Plesk creates a website will it create this entry at the website level in IIS in the handler mappings, pointing to this file "php-cgi.exe"
There is no PHP handler in the IIS root that allows me to configure the allowed verbs and that can be propagated to websites.
When Plesk creates a website, it has a set of settings that it applies to the website, which includes the creation of the handler to interpret .php files, the path of the executable that it installed itself and the allowed verbs.
I know that after creating a website and only at the website level I can change the verbs in IIS.
There should be a Plesk configuration file or option where you can define which PHP framework verbs (GET, UPDATE, POST, OPTIONS, etc) are allowed when a website is created.
-
Duarte N commented
Wordpress hosted on IIS has an anomaly and the result is this error: “There was an error. The response is not a valid JSON response.”
The only way found to resolve the error is to activate the "OPTIONS" verb.
There are several reports on the Internet about this phenomenon, as in this example:
https://www.amixa.com/blog/2022/02/14/wordpress-there-was-an-error-the-response-is-not-a-valid-json-response/More than 1/3 of websites on the Internet use Wordpress and the ideal for shared hosting is to activate this function by default when creating the website, to avoid unnecessary support requests.