Skip to content

chore(security): harden response headers + session cookie#57

Merged
bigin merged 1 commit into
masterfrom
chore/security-hardening-headers-cookies
May 15, 2026
Merged

chore(security): harden response headers + session cookie#57
bigin merged 1 commit into
masterfrom
chore/security-hardening-headers-cookies

Conversation

@bigin
Copy link
Copy Markdown
Owner

@bigin bigin commented May 15, 2026

Editor's IMSESSID cookie now ships with HttpOnly, SameSite=Lax, and Secure when the request is HTTPS (direct or via X-Forwarded-Proto from a TLS-terminating proxy). nginx no longer leaks its version, php no longer emits X-Powered-By, and every response carries CSP, X-Content- Type-Options, X-Frame-Options, Referrer-Policy, and Permissions-Policy.

CSP is tight (no script-src 'unsafe-inline') but allow-lists cdn.jsdelivr.net since the basic theme pulls UIkit from there. style-src keeps 'unsafe-inline' because UIkit / jQuery inject inline style attributes at runtime.

Verified via curl + a full editor login smoke test against the local docker stack.

Editor's IMSESSID cookie now ships with HttpOnly, SameSite=Lax, and
Secure when the request is HTTPS (direct or via X-Forwarded-Proto from
a TLS-terminating proxy). nginx no longer leaks its version, php no
longer emits X-Powered-By, and every response carries CSP, X-Content-
Type-Options, X-Frame-Options, Referrer-Policy, and Permissions-Policy.

CSP is tight (no script-src 'unsafe-inline') but allow-lists
cdn.jsdelivr.net since the basic theme pulls UIkit from there.
style-src keeps 'unsafe-inline' because UIkit / jQuery inject inline
style attributes at runtime.

Verified via curl + a full editor login smoke test against the local
docker stack.
@bigin bigin merged commit 3096768 into master May 15, 2026
@bigin bigin deleted the chore/security-hardening-headers-cookies branch May 15, 2026 14:02
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.

1 participant