原生跨域 var http=require('http'); var server = http.createServer(function (req,res) { res.setHeader('Access-Control-Allow-Origin', req.headers.origin) res.end("success") }); server.listen(1200); console.log('listen on 1200'); express跨域 const expres…
CentOS的系统(Linux 内核) 编辑HOST vi /etc/hosts 加入127.0.0.1 www.a.com127.0.0.1 www.b.com 首先:创建 a_setcookie.php 文件,内容如下: <?php //header('P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"'); setcookie("tes…