Cookie blocked/not saved in IFRAME in Internet Explorer

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

    Anyone having this problem in node.js.

    Then add this p3p module, and enable this module at middleware.

    npm install p3p
    

    I am using express so I add it in app.js

    First require that module in app.js

    var express = require('express');
    var app = express();
    var p3p = require('p3p');
    

    then use it as middleware

    app.use(p3p(p3p.recommended));
    

    It will add p3p headers at res object. No need to do any extra things.

    You will get more info at:

    https://github.com/troygoode/node-p3p

提交回复
热议问题