push_type icon indicating copy to clipboard operation
push_type copied to clipboard

Pass CSRF token in asset upload request

Open prabhakar97 opened this issue 6 years ago • 3 comments

This PR fixes #49. I faced the same issue with Rails 5.2 and push_type 0.12.1. Upon checking the parameters sent to PushType::Admin::AssetsController#upload I found that authenticity_token field was missing.

[https://discuss.pushtype.org/t/unprocessable-entity-upon-an-asset-upload/349](Forum thread)

prabhakar97 avatar Jul 21 '18 16:07 prabhakar97

Can we get this merged into tagged version soon?

epipheus avatar Oct 02 '18 07:10 epipheus

Hmm. there is an issue with this though -- you need to also add the fix to the Media -> Update Media menu workflow. otherwise you end up with this when you update an asset: screenshot 2018-10-02 03 00 53

epipheus avatar Oct 02 '18 08:10 epipheus

What release will this go in?

epipheus avatar Nov 11 '19 05:11 epipheus