# 在浏览器中使用fetch访问HTTP API会报CORS错误怎么解决？

**URL:** <https://askemq.com/t/topic/10202>\
**Category:** NanoMQ\
**Tags:** 技术支持\
**Created:** [2024 年11 月 26 日 06:05 UTC](https://askemq.com/t/topic/10202 "2024-11-26T06:05:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![Yidan](https://askemq.com/letter_avatar/yidan/32/6_449c533f586939b6e5f246632a46421f.png) [@Yidan](https://askemq.com/u/Yidan)\
发布日期： [2024 年11 月 26 日 06:05 UTC](https://askemq.com/t/topic/10202/1 "2024-11-26T06:05:56Z")

</div>

在NanoMQ的配置文档中没有找到对HTTP API进行跨域访问的相关内容。比如设置Access-Control-Allow-Origin或对预检请求进行响应等。
