Hi guys,
I have 2 projects using Yii2. The first project is just an exemple for the customers. They will be able to develop them own client. This is just a sample.
The second project is a Rest WS. The problem is the CSRF validation. As an webservice, i’m using a token authentication, so i dont need the CSRF.
I’m trying to access the methods by CURL function. This calls send responses like “Method Not Allowed”. I tried to disable csrf at controller and the web config. But it seems to not working and i’m still receiving the errors.
How can i definitely disable csrf?
Thanks for help.