forse ho capito il problema:
codice:
$ curl -IL 'https://sito.it/api?controller=abbonamenti&method=addOrUpdate'
HTTP/1.1 301 Moved Permanently
Date: Mon, 22 Apr 2024 07:37:32 GMT
Server: Apache
Location: https://sito.it/api/?controller=abbonamenti&method=addOrUpdate
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 200 OK
Date: Mon, 22 Apr 2024 07:37:32 GMT
Server: Apache
X-Powered-By: PHP/8.2.18
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: *
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
Vary: User-Agent
X-Powered-By: PleskLin
Content-Type: application/json; charset=UTF-8