Git Product home page Git Product logo

Comments (11)

jkanschik avatar jkanschik commented on June 21, 2024 2

To fix it, you can remove crossorigin="anonymous" in line 12 of the generated report.html. I assume that this would need to be changed in index.js, line 5129 (I only checked the distribution in my node_modules, not the actual source code.

I tested it on Chrome and Firefix on Windows 7.

from protractor-beautiful-reporter.

Evilweed avatar Evilweed commented on June 21, 2024

On OSX this issue does not occur.

To fix CSS issue we could:

  • Start local server and host files;
  • Move CSS to inside of HTML file;

from protractor-beautiful-reporter.

brassier avatar brassier commented on June 21, 2024

I'm noticing this problem as well.

from protractor-beautiful-reporter.

aboudard avatar aboudard commented on June 21, 2024

bootstrap css works fine for me with the latest version, on windows 10

Isn't that because you output the report in Users/ folder ? just a guess.

from protractor-beautiful-reporter.

brassier avatar brassier commented on June 21, 2024

In my case I'm just throwing the report into c:\temp. The css works fine in FireFox/Edge, just not Chrome. I'm sure it would work if the HTML was served from a proper web server and not the file system.

Access to CSS stylesheet at 'file:///C:/temp/_ProtractorResults/chrome-iphone4/bootstrap.css' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access.

from protractor-beautiful-reporter.

Evilweed avatar Evilweed commented on June 21, 2024

@brassier @aboudard to clarify, on Windows 10 reports are:

  • [NOT GOOD] Chrome
  • [GOOD] Firefox
  • [GOOD] Edge

And location of the report (User's docs or other) does not change that?
Right?

from protractor-beautiful-reporter.

brassier avatar brassier commented on June 21, 2024

@Evilweed - That looks like a good summary to me.

from protractor-beautiful-reporter.

aboudard avatar aboudard commented on June 21, 2024

@Evilweed Well reports work just fine on all browsers on my Windows 10.

from protractor-beautiful-reporter.

SDohle avatar SDohle commented on June 21, 2024

Does the error occur if you start chrome with the --allow-file-access-from-files flag?

from protractor-beautiful-reporter.

Evilweed avatar Evilweed commented on June 21, 2024

Potentially fixed in latest version v1.1.2

from protractor-beautiful-reporter.

pfoucray avatar pfoucray commented on June 21, 2024

I confirm, on my pc, it works on Chrome as well as firefox :)
It appears to be fixed to me !

Cheers mate !

from protractor-beautiful-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.