Skip to content

Replacement for PR1567 for context security policy#1656

Open
huss wants to merge 22 commits into
OpenEnergyDashboard:developmentfrom
huss:pr1567Updates
Open

Replacement for PR1567 for context security policy#1656
huss wants to merge 22 commits into
OpenEnergyDashboard:developmentfrom
huss:pr1567Updates

Conversation

@huss

@huss huss commented Jun 22, 2026

Copy link
Copy Markdown
Member

Description

For reasons I have not been able to figure out, I cannot push changes to PR #1567. Thus, I am creating a new PR to hopefully finalize it. I want to be clear that there is a lot of earlier work by @BrianRaymond800 in the previous PR and in the commit change. I only made very modest changes to clean it up.

As PR #1567 states:

This PR contains work completed by @pogoco26 and @CamClendenon, which added a Content Security Policy to OED. Information about their work can be found in PR #1484.

So this also continues that work.

Comment thread src/client/index.html
multiple sites as an exceptions would be : img-src 'self' http://example.com https://site_example.net; becomes img-src 'self'
http://example.com https://site_example.net https://newException.com;
-->

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was comments from PR #1567 that may still need to be considers:

@huss said on 2 Feb. 26:

A number of commented out lines were removed here from the original PR. I wanted to check if they had any value or were examples.

and @BrianRaymond800 said on 10 Feb. 26:

From what I can tell, those lines were an alternate implementation of the CSP that was rejected and replaced with the current one, but never fully removed. That is why I chose to remove it.

I don't know if these lines are important or not, esp. given the console warnings.

@huss huss changed the title Replacement for PR1567 Replacement for PR1567 for context security policy Jun 22, 2026
@huss

huss commented Jun 22, 2026

Copy link
Copy Markdown
Member Author

On 2 Feb. 26 I left this on PR #1567:

When I run OED and look in the web browser console, I see a number of security content msgs. These need to be figured out. I don't know if it relates to the commented out code that was removed as noted in a comment.

To clarify, I now see these in the web browser console on initial load of OED. I also either get a blank page or a message saying OED cannot load. For Firefox:

Screenshot 2026-06-22 at 11 08 20 AM Screenshot 2026-06-22 at 11 08 08 AM

For Safari:

Screenshot 2026-06-22 at 11 21 05 AM

For Chrome:

Screenshot 2026-06-22 at 11 22 34 AM

The null issue and warnings need to be figured out. I don't know if any other changes should be made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants