laravel 5 - Getting TokenMismatchException in VerifyCsrfToken.php line 46: when uploading an image using Elfinder -


im using laravel 5 ckeditor , elfinder create wysiwyg editor in cms. ive got file browser , running, cant file upload work. have upload tab, when click send server following:

tokenmismatchexception in verifycsrftoken.php line 46: 

any ideas why happening?

update

i removed verifycsrf kernel.php removed error specifically. did, throw new exception, i'll save future question. ultimately, dont want disable csrf across board image uploads. thought exclude routes:

/app/http/middleware/verifycsrftoken.php:

class verifycsrftoken extends baseverifier {      /**      * uris should excluded csrf verification.      *      * @var array      */     protected $except = [         'elfinder/*'     ]; 

i assuming elfinder routes run under elfinder prefix, although don't have evidence up. documentation not clear on routes run during upload. welp....this doesn't work either.

so followup: right direction? know exact routes run on elfinder?

update 2

using article created own verifycsrftokencustom class , able disable csrf on elfinder only. there seems routing issue get/post route, think should new question.

this csrf protection. can either pass token ckeditor or in app\http\kernel.php might comment line verifycsrftoken in $middleware property , way turn off csrf protection.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -