-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Html UI report without enable same-origin assets #6661
Comments
I'm not sure what the issue is exactly with that description. Adding I think the easiest way around is to strip out |
I would disagree there. It is optioned default. It is good for dev and when you do not use CDN (you can see for google CDN we do not have crossorigin). Also there we are building not webapp, but report. I believe it should be as simple as possible (i based my opinion on usage of istanbul html report and rollup-plugin-visualizer maintainer experience) Let see if others comment, otherwise i will use sed in build script. |
Admittedly I have no idea about security, so I was just blaming Vite for now 😄 I didn't see any option to control this, so I thought it would be a pretty strong opinion imposed on all Vite use cases. I also saw some folks putting Vitest's artifacts on the Internet like https://onchainkit.xyz/coverage/ (#6357), so I wasn't entirely sure about your argument. But happy to discuss here and get opinions from more. |
Yea, and it is istanbul report 😄 |
The team decided that we could remove the |
Reading vitejs/vite#6648 again, it looks like this is technically a browser bug. |
Thank you @hi-ogawa @sheremet-va |
Clear and concise description of the problem
As of now, html report has such markup:
It always contain
crossorigin
attribute, which enablessame-origin
policy.When we upload generated report for every url in our artifact storage, it returns every response with SSO checks (location header). And this breaks this report (blank page, FF shows Cross-Origin violation for same origin policy)
Suggested solution
Honestly i do not completely understand why for html report we need crossorigin checks. Nobody share them in internet and it does not look like it make it any way secure as it is completely generated.
To keep it backward compatible as i cannot imagine every possible usecase, can we allow via settings disable
crossorign
attribute addition?Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: