Post

Replies

Boosts

Views

Activity

Sign In with Apple REST API 403 Forbidden
Hello, I would send POST data to the Sign In with Apple REST API, but corrently I got the error 403 Forbidden on my server. If i test it with curl in the terminal, it works.Here is the php code for this:$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://appleid.apple.com/auth/token'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($myArray)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $serverOutput = curl_exec($ch); if(curl_exec($ch) === false) { echo 'Curl error: ' . curl_error($ch); } curl_close ($ch); print_r($serverOutput);I got http code 403 by apple server. What is wrong?
4
0
6k
Jul ’22
Sign In with Apple - Your request could not be completed due to an error. Try again later.
Hello,I'm trying to implement Sign In with Apple on my website. Currently I got this error: Your request could not be completed due to an error. Try again later.You can check this here: https://hanashi.dev/apple/I tested it with Apple JS and with the code example from this Git repository: https://github.com/aaronpk/sign-in-with-apple-exampleI don't know what is wrong. Please help.kind regardsPeter
5
0
11k
May ’23
Sign In with Apple REST API 403 Forbidden
Hello, I would send POST data to the Sign In with Apple REST API, but corrently I got the error 403 Forbidden on my server. If i test it with curl in the terminal, it works.Here is the php code for this:$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://appleid.apple.com/auth/token'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($myArray)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $serverOutput = curl_exec($ch); if(curl_exec($ch) === false) { echo 'Curl error: ' . curl_error($ch); } curl_close ($ch); print_r($serverOutput);I got http code 403 by apple server. What is wrong?
Replies
4
Boosts
0
Views
6k
Activity
Jul ’22
Sign In with Apple - Your request could not be completed due to an error. Try again later.
Hello,I'm trying to implement Sign In with Apple on my website. Currently I got this error: Your request could not be completed due to an error. Try again later.You can check this here: https://hanashi.dev/apple/I tested it with Apple JS and with the code example from this Git repository: https://github.com/aaronpk/sign-in-with-apple-exampleI don't know what is wrong. Please help.kind regardsPeter
Replies
5
Boosts
0
Views
11k
Activity
May ’23