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

当二维码设置logo时, 由于跨域问题浏览器报错无法加载 #87

Open
aboutZZ opened this issue May 7, 2021 · 4 comments
Open

Comments

@aboutZZ
Copy link

aboutZZ commented May 7, 2021

Chrome 浏览器 90.0.4430.93

canvas 将图片转为base64报错: DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported

火狐浏览器 88.0

Uncaught (in promise) DOMException: The operation is insecure.

建议

请将imgcrossOrigin属性设置为Anonymous

@Binaryify
Copy link
Owner

晚上回去我改下吧, Awesome-qr.js 有点坑

@Binaryify
Copy link
Owner

重新装下看看

@uchihayu
Copy link

还是会出现上面的报错。vue-qr: 2.4.0, binaryify-awesome-qr: 2.1.10;chrome86

@Binaryify
Copy link
Owner

@uchihayu
crossOrigin 我已经设了Anonymous,还报错的话应该是服务器的设置问题

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

3 participants