You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
如题,不能使用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.
The text was updated successfully, but these errors were encountered:
如题,不能使用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.
The text was updated successfully, but these errors were encountered: