Closed kirill-konshin closed 4 years ago
OK, I'll test it and make changes.
+1 Any news on this issue?
Hi @kirill-konshin ,
I am unable to call OPTIONS request, can you please suggest me something because i am stuck on this point from a long time.
When i am calling URL to generate token i am getting this response.
{
"name": "Method Not Allowed",
"message": "The request method must be POST when requesting an access token",
"code": 0,
"status": 405,
"type": "filsh\yii2\oauth2server\exceptions\HttpException"
}
Also if possible can you please share your CORS file so i can know what is inside of that file.
Your help will save my time.
I have provided all that I have in another topic: https://github.com/Filsh/yii2-oauth2-server/issues/8
Hi, I know there have been like 4 years since this issue was post, but I am trying to implement this right now, and I'm still having problems with this.
@kirill-konshin can you please tell me how did you finally solve it? I'm not actually using this, but the fork https://github.com/hosannahighertech/yii2-oauth2-server
The way I fixed it is in the description.
@kirill-konshin @danisetg Could check if the problem still exist in the latest release - v2.1.0?
Feel free to re-open. Closing due to inactivity.
I had to override the DefaultController to add CORS behavior:
Without that each oauth request will fail because of no CORS headers