
# AccessForbidden
#### CORS is not enabled for this bucket.
**报错描述**
该存储桶未启用CORS。
**报错原因**
跨域访问时，桶未配置CORS规则，CORS规则列表为空，导致跨域访问被拒绝。
**处理建议**
通过OBS控制台或API配置桶的CORS规则，详情参见[配置CORS实现跨域访问OBS](https://support.huaweicloud.com/usermanual-obs/zh-cn_topic_0066036542.html)。
#### This CORS request is not allowed. This is usually because the evalution of Origin, request method / Access-Control-Request-Method or Access-Control-Request-Headers are not whitelisted by the resource's CORS spec.
**报错描述**
桶CORS规则无法匹配。
**报错原因**
跨域访问时，请求的Origin、请求方法（request method / Access-Control-Request-Method）或请求头（Access-Control-Request-Headers）未匹配到桶的CORS规则白名单。
**处理建议**
检查请求的Origin、请求方法和请求头，确保它们在桶的CORS规则的白名单中。如需访问，请联系桶管理员将您的Origin、请求方法和请求头添加到CORS规则中，详情参见[配置CORS实现跨域访问OBS](https://support.huaweicloud.com/usermanual-obs/zh-cn_topic_0066036542.html)。
