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

Snap.load(url,callback)无法加载本地SVG文件 #9

Open
SnowCoCo opened this issue Apr 21, 2019 · 0 comments
Open

Snap.load(url,callback)无法加载本地SVG文件 #9

SnowCoCo opened this issue Apr 21, 2019 · 0 comments

Comments

@SnowCoCo
Copy link

如题,不能使用Snap.load(url,callback)这个方法实现加载SVG文件,我这个是单纯将snap.svg.js引入,但是运行html,后台出现:
snap.svg.js:2631 Access to XMLHttpRequest at 'file:///Users/liwen/Downloads/Snap.svg-0.5.1/demos/animated-map/map.svg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

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

1 participant