Ajax Question |
On my upload ajax I use Formdata but I would like to know how can I add / append the CSRF to it?
Code: <?php echo $this->security->get_csrf_token_name(); ?>' : '<?php echo $this->security->get_csrf_hash(); ?> Not sure where to put the secureity stuff on here Code: var formData = new FormData($(this).parent()[0]); Script Code: <script type="text/javascript">
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
Ajax Question - by wolfgang1983 - 07-01-2017, 04:28 AM
RE: Ajax Question - by PaulD - 07-01-2017, 05:29 AM
RE: Ajax Question - by wolfgang1983 - 07-01-2017, 05:46 AM
RE: Ajax Question - by PaulD - 07-01-2017, 07:07 AM
|