Codeigniter CSRF valid for only one time ajax request

前端 未结 9 868
鱼传尺愫
鱼传尺愫 2020-12-03 11:46

I want to upload image on the server on change event of jQuery but using codeigniter csrf I am able to upload image only one time. How can I upload images using ajax for mul

9条回答
  •  离开以前
    2020-12-03 12:01

    All you need to do is reload the CSRF token in your AJAX response. It is that simple!.

提交回复
热议问题