Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跨域报错 #16

Closed
fhefh2015 opened this issue Feb 10, 2021 · 4 comments
Closed

跨域报错 #16

fhefh2015 opened this issue Feb 10, 2021 · 4 comments

Comments

@fhefh2015
Copy link

报错信息:

Access to XMLHttpRequest at 'https://api.uptimerobot.com/v2/getMonitors' from origin 'https://status.org.cn' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

image

@renfei

This comment has been minimized.

@yb
Copy link
Owner

yb commented Feb 18, 2021

官网接口间歇性的 CORS 抽风,后续会增加自定义 API 域名配置;

@yb
Copy link
Owner

yb commented Feb 18, 2021

最新的 v.1.5.1 版本新增了 ApiDomain 配置,可自定义接口域名;
另外 README 中也增加了如何 Cloudflare Workers 搭建代码,欢迎更新;

@yb yb closed this as completed Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@renfei @fhefh2015 @yb and others