Cookie blocked/not saved in IFRAME in Internet Explorer

前端 未结 22 2131
死守一世寂寞
死守一世寂寞 2020-11-22 00:53

I have two websites, let\'s say they\'re example.com and anotherexample.net. On anotherexample.net/page.html, I have an IFRAME S

22条回答
  •  一整个雨季
    2020-11-22 01:23

    In Rails 3.2 I am using:

    class ApplicationController < ActionController::Base  
    
      before_filter :set_p3p  
    
      private  
        # for IE session cookies thru iframe  
        def set_p3p  
          headers['P3P'] = 'CP="ALL DSP COR CURa ADMa DEVa OUR IND COM NAV"'  
        end  
    end  
    

    I got this from: http://dot-net-web-developer-bristol.blogspot.com/2012/04/setting-p3p-header-in-rails-session.html

提交回复
热议问题