小编Cha*_*ner的帖子

在哪里添加`SameSite=None`?

我在我的网站上得到了以下代码,我尽力了,无法理解这一点,所以我有几个问题,请阅读。

category-search-Forum:1 A cookie associated with a cross-site resource at https://www.google.com/ was set without the `SameSite` attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

我在堆栈和其他在线地方看到很多人谈论这个,但没有人确切解释如何添加SameSite=None.

1 问题:你如何或在哪里添加SameSite=None

并查看错误,什么是“安全”

那是SameSite=Secure什么意思?

SameSite=None和 和有SameSite=Secure什么区别?

google-chrome samesite

18
推荐指数
1
解决办法
3万
查看次数

如何使用链接而不是按钮打开模式弹出窗口

如何使用链接而不是按钮弹出打开模式?我不希望该操作是一个按钮,我希望它是一个 href 链接,非常感谢一个工作示例。下面提供了完整的代码。按钮很糟糕,链接规则。

截至目前,我有代码作为打开模式的按钮,并且按钮是预样式,我只想使用主菜单的常规链接打开模式,所以如您所见,我不想要在主菜单中放置一个按钮,因为主菜单具有针对菜单设计的链接。

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); …
Run Code Online (Sandbox Code Playgroud)

javascript modal-dialog popup hyperlink

6
推荐指数
1
解决办法
4万
查看次数