Skip to content

feat: warn when publish origins list null - #1498

Merged
dunglas merged 1 commit into
mainfrom
fix/warn-null-publish-origin
Dec 1, 2026
Merged

dunglas merged 1 commit into
mainfrom
fix/warn-null-publish-origin

Conversation

@dunglas

@dunglas dunglas commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Browsers send Origin: null for sandboxed iframes, data: URLs and local files, whatever site they come from. Listing null in publish_origins therefore lets any site publish with a user's cookie.

It stays allowed, since file:// apps (Cordova, Electron) need it, but the hub now logs a warning at startup and the configuration reference says what it opens.

@dunglas
dunglas merged commit ea8a882 into main Dec 1, 2026
50 of 51 checks passed
@dunglas
dunglas deleted the fix/warn-null-publish-origin branch December 1, 2026 16:14
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