Im trying to make a simple POST to a controller. I already have the token, but it only works via GET, when I switch to POST it throws an "Unauthorized: You are requesting with an invalid credential".
This is related to Missing Authorization Header (https://github.com/yiisoft/yii2/issues/6631) I had to add SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 to my .htaccess to solve it.
Im trying to make a simple POST to a controller. I already have the token, but it only works via GET, when I switch to POST it throws an "Unauthorized: You are requesting with an invalid credential".
Please refer to stackoverflow full question: http://stackoverflow.com/questions/35853755/yii2-and-oauth2-unauthorized-when-sending-post-data
Thanks in advance.