extentreports-java icon indicating copy to clipboard operation
extentreports-java copied to clipboard

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

Open djangofan opened this issue 8 years ago • 5 comments

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

djangofan avatar Feb 01 '17 21:02 djangofan

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.

anshooarora avatar Feb 01 '17 21:02 anshooarora

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?

djangofan avatar Feb 01 '17 21:02 djangofan

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

anshooarora avatar Feb 02 '17 01:02 anshooarora

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+.

anshooarora avatar Feb 07 '17 15:02 anshooarora

@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

mesketh avatar May 08 '18 03:05 mesketh