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

nginx配置了跨域,可是地址填到输入框里显示TypeError: Failed to fetch #1

Closed
Fanwuhjl opened this issue Oct 14, 2021 · 1 comment

Comments

@Fanwuhjl
Copy link

你好,我的nginx配置了跨域,可是图片地址填到输入框里显示TypeError: Failed to fetch,请问要怎么做?

@ckvv
Copy link
Owner

ckvv commented Oct 19, 2021

@Fanwuhjl
需要配置图片允许跨域,你检查一下请求图片返回的header
比如说这个https://i.imgur.com/sSlDIOO.jpg
截屏2021-10-19 下午6 49 20

@ckvv ckvv closed this as completed Oct 22, 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

2 participants