ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

csrf problem

November 03, 2013 3:42pm

Subscribe [1]
  • #1 / Nov 03, 2013 3:42pm

    mamdouhweb

    1 posts

    Hi,
    I’m really stock with csrf in IE and I had no where to go but here.
    see this link for complete details.

    stackoverflow question

    main idea is that no matter what I do, CSRF won’t work in IE.

    any help or suggestions?!

  • #2 / Apr 15, 2014 8:20am

    www.sblog.in

    31 posts

    You can do something like following

    [removed]
    
    $(function(){
       
      $('.someButton').click(function(){   
    
        var post_data = {
            '<?php echo $this->security->get_csrf_token_name(); ?>' : '<?php echo $this->security->get_csrf_hash(); ?>'
        };
    
            $.ajax({
                    type: "POST",
                    url: "url",
                    data: post_data,
                    success: function(msg){
                      /// do something 
                    }
                });
    
      });
    
    });
    [removed]
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases