1
Joomla! 4.x / [RISOLTO] Re:Joomla 4 - Rest Api su top@host
« il: 12 Nov 2021, 10:57:45 »
Finalmente ho avuto la risposta attraverso un ticket aperto su top@host. questo è il link:
https://www.*****.it/assistenza/supporto/domande-tecniche/come-usare-le-api-di-joomla-4-su-******/
Comunque, il segreto è quello di aggiungere questa direttiva in cima al file /api/index.php
if (preg_match('/Bearer+(.*)$/i', $_SERVER['REDIRECT_HTTP_AUTHORIZATION'], $matches)) {
$_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
}
Grazie comunque per le risposte che ho avuto.
Buona giornata a tutti
https://www.*****.it/assistenza/supporto/domande-tecniche/come-usare-le-api-di-joomla-4-su-******/
Comunque, il segreto è quello di aggiungere questa direttiva in cima al file /api/index.php
if (preg_match('/Bearer+(.*)$/i', $_SERVER['REDIRECT_HTTP_AUTHORIZATION'], $matches)) {
$_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
}
Grazie comunque per le risposte che ho avuto.
Buona giornata a tutti