Here is my code to authenticate,
$client = new Google_Client();
$client->setApplicationName('Google Drive API PHP Quickstart');
$client->setRedirectUri("https://example.com/google_redirect");
$client->setClientId("my-client-id");
$client->setClientSecret("my-client-secret");
$client->setScopes(Google_Service_Drive::DRIVE);
$client->setAccessType('offline');
$client->setPrompt('select_account consent');
I can connect with this. But after authorizing from Google, it's redirecting like this,
The page is showing this message:
I guess, I could fix this error message by applying anything from here: Not Acceptable! An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security
But this is not the convenient way. Every user should do that.
Is there any special parameter or something to prevent this or get data by POST method in Google?
Looking for help. Thanks in advance.