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

[pytest-html v4.1.1]"Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag" DOMException raised when accessing the report from nexus storage #795

Open
xipomeng opened this issue Jan 24, 2024 · 1 comment

Comments

@xipomeng
Copy link

issue:
[pytest-html v4.1.1]"Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag" DOMException raised when accessing the report from nexus storage

steps to reproduce:

  1. generate pytest report using pytest-html v4.1.1 with args '--html=report.html --self-contained-html'
  2. upload report.html to nexus storage
  3. access report.html from browser using http scheme
  4. "Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag" DOMException raised
  5. the result details not show, only result counts

image

@BeyondEvil
Copy link
Contributor

Sounds like a CORS issue which is (I think) out of scope for this plugin.

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

2 participants