-
Notifications
You must be signed in to change notification settings - Fork 37
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
图片 CORS 问题 #13
Comments
Closed
同样问题,解决了吗 |
很早之前发了 PR, 作者没 merge
xjpe ***@***.***> 于2023年4月10日周一 10:22写道:
… 同样问题,解决了吗
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIBEY23FGFPMC3S2YQOMDODXANVFHANCNFSM6AAAAAAURBPRIA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
那个有点儿粗暴了,一般情况下,你的图片存储服务器都应该是会添加CORS的,我把跨域改成参数吧,默认开启 |
v2.2.1已添加跨域参数 |
直接nginx又做了层代理。。 |
实际上 我试过 下面两种方式, 都允许跨域访问, 允许以任意形式正常访问.
而且 OOS 一般开的是 header 验证吧, 验证下 Refer... @heikaimu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
疑问
image.crossOrigin = 'Anonymous'
真的有必要吗?加了反而不能正常显示了手动修改本地 my-lib.es.js, 去除
image.crossOrigin = 'Anonymous'
可以正常显示vue3-waterfall-plugin/lib/utils/loader.ts
Line 20 in cdb8ceb
问题截图
环境
nodejs 16.x.x
"vue-waterfall-plugin-next": "^2.1.11",
后端是 moleculer 起的 api 和 file server,允许跨域,跨域api可以正常调用
网上讨论
https://segmentfault.com/q/1010000008648867
The text was updated successfully, but these errors were encountered: