Project

General

Profile

Bug #8836

CSS and JS not loading on ProvONE documentation

Added by Bryce Mecum over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2019-08-12
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

I was looking at http://jenkins-1.dataone.org/jenkins/view/Documentation%20Projects/job/ProvONE-Documentation-trunk/ws/provenance/ProvONE/v1/provone.html today and Chrome and Safari are both upset with how its CSS and JS are set up and are refusing to load either. Steps to reproduce:

  1. Go to http://jenkins-1.dataone.org/jenkins/view/Documentation%20Projects/job/ProvONE-Documentation-trunk/ws/provenance/ProvONE/v1/provone.html
  2. See no styles are loaded, hide/show examples buttons don't work. See errors in devtools about CSP errors.

Screen Shot 2019-08-14 at 3.16.13 PM.png (47.8 KB) Bryce Mecum, 2019-08-14 23:16

752

History

#1 Updated by Dave Vieglais over 5 years ago

  • Assignee set to Dave Vieglais
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Needed to set csp on the Jenkins server:

https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy

in /etc/defaults/jenkins

#2 Updated by Bryce Mecum over 5 years ago

Thanks! It's much better now. Do you care about the remaining CSP errors the page throws?

#3 Updated by Dave Vieglais over 5 years ago

Bryce Mecum wrote:

Thanks! It's much better now. Do you care about the remaining CSP errors the page throws?

Not seeing any errors on page load except 404 for favico.

#4 Updated by Bryce Mecum over 5 years ago

752

I get a litany of CSP errors:

#5 Updated by Dave Vieglais over 5 years ago

Bryce Mecum wrote:

I get a litany of CSP errors:

OK, should be sorted now.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)