mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 20:25:51 +03:00
[GH-ISSUE #218] [FEATURE] Send Content Security Policy (CSP) Header #151
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pred2k on GitHub (Mar 7, 2021).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/218
Describe the feature you'd like to see added
To prevent any accidental connection (ip leaks) to google or others, whoogle should send a strong CSP Header.
I use the following in my reverse proxy without breaking functionality in FireFox 86.
Inline scripts ("script-src") and images
data:image/png;base64,iVBORw0KGgoAAAANSU… ("img-src")
are blocked, says the console
This would offer CSP to all kinds of deployments.
Additional context
https://en.wikipedia.org/wiki/Content_Security_Policy
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html
@benbusby commented on GitHub (Mar 7, 2021):
Good thinking, thanks for the recommendation. Added in
a1134e7633.