Allow cross-origin requests to the server root RPC methods
Sending an OPTIONS request to the trytond root path results in a 405 method not allowed response instead of a 204 no content.
For example:
$ curl --include --request OPTIONS https://demo6.2.tryton.org/
HTTP/2 405
server: nginx/1.20.1
date: Wed, 24 Nov 2021 00:48:27 GMT
content-type: text/html; charset=utf-8
content-length: 178
allow: POST
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>
Instead of (with database path included):
$ curl --include --request OPTIONS https://demo6.2.tryton.org/demo6.2/
HTTP/2 204
server: nginx/1.20.1
date: Wed, 24 Nov 2021 00:47:07 GMT