S
S
Sergey Beloventsev2017-07-15 19:58:01
Yii
Sergey Beloventsev, 2017-07-15 19:58:01

How to use csrf in extensions?

Actually the question is, if I send the form (created in the extension) to the extension controller, do I need to disable csrf?
Because as soon as I installed the extension to myself (which I had created before) with the help of composer, an error began to fall out

Unable to verify your data submission. in /var/www/magaz.lc/vendor/yiisoft/yii2/web/Controller.php:166

While developing in the same vendor folder, everything worked. C copied c git to another project (git clone) everything works.
Here is the extension

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-07-16
@webinar

How to use csrf in extensions

just like usual
no, why?
check why csrf_token is not coming there
5 times re-read. Didn't understand. Everything works for you and so and so, what's the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question