Cookie blocked/not saved in IFRAME in Internet Explorer

前端 未结 22 2097
死守一世寂寞
死守一世寂寞 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:12

    You can also combine the p3p.xml and policy.xml files as such:

    /home/ubuntu/sites/shared/w3c/p3p.xml

    
      
        
          /
          
        
      
      
        
          
            
               
               
            
          
          
            
          
          
          
            
              
              
              
            
            
              
            
            
              
            
            
              
              
            
          
        
      
    
    

    I found the easiest way to add a header is proxy through Apache and use mod_headers, as such:

    
      ServerName mydomain.com
    
      DocumentRoot /home/ubuntu/sites/shared/w3c/
    
      ProxyRequests off
      ProxyPass /w3c/ !
      ProxyPass / http://127.0.0.1:8080/
      ProxyPassReverse / http://127.0.0.1:8080/
      ProxyPreserveHost on
    
      Header add p3p 'P3P:policyref="/w3c/p3p.xml", CP="NID DSP ALL COR"'
    
    

    So we proxy all requests except those to /w3c/p3p.xml to our application server.

    You can test it all with the W3C validator

提交回复
热议问题