似乎您必须将临时站点或本地站点列入白名单才能执行测试。有谁知道解决办法吗?我去了他们的网站查看文档,但我可以找到除此之外的任何内容(在页面的最底部):
<!-- OneTrust Cookies Consent Notice start for www.example-domain.com -->
<script type="text/javascript" src="https://cdn.cookielaw.org/consent/{id}-test/OtAutoBlock.js" ></script>
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" data-language="en" type="text/javascript" charset="UTF-8" data-domain-script="{id}-test" ></script>
<script type="text/javascript">
function OptanonWrapper() {}
</script>
<element class="all-other-html-below">All other HTML</element>
<script type=text/plain class="optanon-category-[category 1 through n]"></script>Run Code Online (Sandbox Code Playgroud)
我想测试 OneTrust 的脚本对其他脚本标签的影响。我想看看脚本后面的脚本标签是否可以从 转换为type="text/plain"并type="text/script"查看是否抛出错误。显然,这是开箱即用的东西。但其他功能取决于该确认。但是,当用户同意 Cookie 类别时,接受的 Cookie 不会发生变化:
在此处输入图像描述
但它可以在实时网站上使用: 在此处输入图像描述
这似乎与域名不匹配有关。有没有解决的办法?