> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.another-horizon.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Osano

> 使用 Osano 隐私平台管理 Cookie 同意。

在你的 `docs.json` 文件中添加以下配置，以集成 [Osano](https://www.osano.com/) Cookie 同意管理器。

<CodeGroup>
  ```json Integration options in docs.json theme={null}
  "integrations": {
      "osano": {
          "scriptSource": "SOURCE"
      }
  }
  ```

  ```json Example theme={null}
  "integrations": {
      "osano": {
          "scriptSource": "https://cmp.osano.com/2sUB2dqwqdkks/8dqwd-dwd86£-4a9b/osano.js"
      }
  }
  ```
</CodeGroup>

`scriptSource` 的值可以在 Osano 生成的代码片段中找到，对应其中的 `src` 值。它始终以 `https://cmp.osano.com/` 开头，并以 `/osano.js` 结尾。

```html Code snippet from Osano theme={null}
<script src="https://cmp.osano.com/placeholder/placeholder/osano.js"/>
```

<div id="troubleshooting">
  ## 故障排查
</div>

<Accordion title="在 Strict 合规模式下页面无法加载">
  如果在使用 Osano 的 **Strict** 合规模式时文档页面无法正常加载，你需要将 Mintlify 的 domain 加入允许列表，以允许图片和其他资源加载。

  <Steps>
    <Step title="前往 Managed Rules">
      在 Osano 控制台中，进入 **Scripts** → **Managed Rules**。
    </Step>

    <Step title="添加 Mintlify domain">
      将 `.mintlify.app/` 添加为一条 managed rule。

      <Frame>
        <img src="https://mintcdn.com/anotherhorizon/nGGkQ8HPtMLIJ_OO/images/integrations/osano-managed-rule.png?fit=max&auto=format&n=nGGkQ8HPtMLIJ_OO&q=85&s=01ad6a2e9b14f8494cff784b3c47ee34" alt="Osano managed rule" width="1980" height="738" data-path="images/integrations/osano-managed-rule.png" />
      </Frame>

      <Info>
        这可确保所有由 Mintlify 提供的资产（包括图片、样式表和其他文档资源）被视为必要内容，即使 Osano 阻止未分类的第三方内容时也会加载。
      </Info>
    </Step>
  </Steps>
</Accordion>
