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

跨域 #62

Open
RobHuang92 opened this issue Mar 18, 2022 · 4 comments
Open

跨域 #62

RobHuang92 opened this issue Mar 18, 2022 · 4 comments

Comments

@RobHuang92
Copy link

window.error监听不是会跨域么,是怎么处理跨域的问题呀

@Chryseis
Copy link
Collaborator

window.error监听不是会跨域么,是怎么处理跨域的问题呀

在引入的时候,script标签加入crossorigin="anonymous",资源允许跨域。具体可以看一下这篇文章https://sentry.io/answers/script-error/

@RobHuang92
Copy link
Author

RobHuang92 commented Mar 21, 2022 via email

@ankeji
Copy link

ankeji commented Mar 2, 2023

给的文档好像也不对啊

@RobHuang92
Copy link
Author

RobHuang92 commented Mar 2, 2023 via email

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