feat: 相同顶级域名不同子域名共享cookie
parent
c91cdeaa92
commit
5c07d8461c
@ -0,0 +1,17 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="width=device-width, initial-scale=1.0"
|
||||||
|
/>
|
||||||
|
<title>cookie</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>我是cookie.test.com:52330设置cookie页面</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
<script>
|
||||||
|
document.cookie = 'test-Cookie=我是测试相同顶级域名下不同子域名之间是否能共享cookie; domain=test.com; path=/; SameSite=Strict';
|
||||||
|
</script>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 201 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 144 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 147 KiB |
Loading…
Reference in New Issue