HTTP 各种特性应用(二)

一、Cookie 通过 Set-Cookie 设置、 下次浏览器请求就会带上、 键值对,可以设置多个。 Cookie 属性 max-age 和 expires 设置过期时间 Secure 只在 https 的时候发送 HttpOnly 无法通过  document.cookie 访问 server.js 代码 const http = require('http') const fs = req
相关文章
相关标签/搜索