local works but in production it returns 403. Same PHP and Laravel version. Is there anything i can do?
$url = 'https://admin.appmax.com.br/api/v3/order/'.$order_id.'?access-token='.$token;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => $url,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true
]);
$response = curl_exec($curl);
curl_close($curl);`
I did all the tests, it doesn't work only in production.
the problem was server permission, they solved it. Thanks.