pytest-html icon indicating copy to clipboard operation
pytest-html copied to clipboard

[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

Open xipomeng opened this issue 1 year ago • 1 comments
trafficstars

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

xipomeng avatar Jan 24 '24 03:01 xipomeng

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

BeyondEvil avatar Feb 02 '24 07:02 BeyondEvil