[GH-ISSUE #688] Cannot load after login #447

Closed
opened 2026-02-25 21:35:03 +03:00 by kerem · 1 comment
Owner

Originally created by @undergroundwires on GitHub (Mar 10, 2023).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/688

🐛 Bugreport

After logging in (password + MFA), I get an empty page (completely blank HTML).

This has been working before using content-security-policy: default-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' 'unsafe-inline'; form-action 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content; header.

I could be able to solve this issue by refreshing the page afterwards but it does not seem to work anymore.

I see no related errors in neither Chromium-based and Firefox browsers.

Version & Environment

Using image sailfrog/cypht-docker:latest.

Reproduce

  1. Add header content-security-policy: default-src 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; form-action 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content;
  2. Verify blank page.
Originally created by @undergroundwires on GitHub (Mar 10, 2023). Original GitHub issue: https://github.com/cypht-org/cypht/issues/688 ## 🐛 Bugreport After logging in (password + MFA), I get an empty page (completely blank HTML). This has been working before using `content-security-policy: default-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' 'unsafe-inline'; form-action 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content;` header. I could be able to solve this issue by refreshing the page afterwards but it does not seem to work anymore. I see no related errors in neither Chromium-based and Firefox browsers. ### Version & Environment Using image `sailfrog/cypht-docker:latest`. ### Reproduce 1. Add header `content-security-policy: default-src 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; form-action 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content;` 2. Verify blank page.
kerem closed this issue 2026-02-25 21:35:03 +03:00
Author
Owner

@undergroundwires commented on GitHub (Mar 10, 2023):

Adding script-src 'unsafe-eval' solved the issue. I seem to have find the most restrictive functioning CPS for the website: content-security-policy: default-src 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content;.

<!-- gh-comment-id:1464492060 --> @undergroundwires commented on GitHub (Mar 10, 2023): Adding script-src 'unsafe-eval' solved the issue. I seem to have find the most restrictive functioning CPS for the website: `content-security-policy: default-src 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; object-src 'none'; frame-ancestors 'none'; upgrade-insecure-requests; block-all-mixed-content;`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#447
No description provided.