Hi, Happy New Year to all.
I'm having problems with my just updated NGINX and PATCH method.
I updated my DA to use NGINX using this guide: http://help.directadmin.com/item.php?id=556
Everything went fine (some minor tweaks for URL re writing) except for PATCH request.
I have an app using PATCH request, I get an empty reply everytome, I tried to add it to conf file:
Any ideas why isn't working?
I'm having problems with my just updated NGINX and PATCH method.
I updated my DA to use NGINX using this guide: http://help.directadmin.com/item.php?id=556
Everything went fine (some minor tweaks for URL re writing) except for PATCH request.
I have an app using PATCH request, I get an empty reply everytome, I tried to add it to conf file:
PHP:
location / {
if ($request_method = 'PATCH') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'POST, GET, PUT, PATCH, DELETE, OPTIONS';
}
}
Any ideas why isn't working?