Yii2 Invalid request (Unsupported SSL request)

Hello everyone I’m trying to integrate the registration of users of yii with google, but despite the api and the various guides that I followed, after choosing the google user with which to enter gives me this error
Invalid request (Unsupported SSL request)
, a little help on how to solve or maybe a link to some project WORKING that provides for the registration and login of users with google?

Where are you running this code from? A server?