anshooarora / extentreports-java

Community version of Extent API for Java has moved to https://github.com/extent-framework/
http://extentreports.com
Other
528 stars 318 forks source link

Can Extent be configured to download .CSS resources from local network? #758

Open djangofan opened 7 years ago

djangofan commented 7 years ago

Extent reports don't render if network MalWare detector flags this .css URL as malicous:

https://cdn.rawgit.com/anshooarora/extentreports/a7fadea2f449184064e06465391f689653dea590/cdn/extent.css

Is it possible to configure Extent reports to download this file from a local url? If not, can you add such a configuration?

Date: Wed, 01 Feb 2017 21:23:11 GMT
                                                    <br />
Username:  host\username@mynetwork
                                                    <br />
Source IP: 10.XX.XX.XX
                                                    <br />
Reason: BLOCK-MALWARE
                                                    <br />
Threat Type: othermalware 
                                                    <br/>
Threat Reason: Identified as malicious domain or URL. Domain reported and verified as serving malware. 
                                                    <br/>
                                                    <hr />
Notification: WBRS
                                                    <br />
Server: or0101dp03.mynetwork
anshooarora commented 7 years ago

This would be part of offline accessible report and is available only in the pro version. I will host it in another location so if GitHub CDN is blocked, the other will still work.

djangofan commented 7 years ago

Trying to understand your last comment: are you saying you'll host the .css file in 2 different locations and the code will try both locations before it renders the report?

anshooarora commented 7 years ago

I will find additional cdns to host and user will be able to select a CDN that works for them via config.

anshooarora commented 7 years ago

I am going to additionally host the resources on:

  1. extentreports: http://extentreports.com
  2. jsDelivr: http://www.jsdelivr.com/

Starting version 3.0.3+.

mesketh commented 6 years ago

@anshooarora Hi - can you tell me how to configure this to bypass CSP issues that I'm having with your https CDN urls.

Many thanks