Skip to content

Conversation

@exadev
Copy link

@exadev exadev bot commented Jul 7, 2025

Dependabot could be enabled for this repository. Please enable it by merging this pull request so that we can keep our dependencies up to date and secure.

Mearman and others added 6 commits July 5, 2025 18:27
Add support for specifying a target origin for postMessage calls to improve
security by restricting which origins can receive the authentication messages.
Extract the referring origin from the Referer header to determine which
domain initiated the authentication request. This will be used to restrict
postMessage communication to the originating domain.
Encode both CSRF token and referring origin in the OAuth state parameter
as base64-encoded JSON. This allows passing the original domain through
the OAuth flow for secure postMessage targeting.
Add targetOrigin parameter to error responses in the handleAuth function
to ensure error messages are only sent to the originating domain.
- Decode the OAuth state parameter to extract original domain
- Add backward compatibility for old state format
- Pass targetOrigin to all error and success responses in handleCallback
- Ensure postMessage communication is restricted to the originating domain
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 7, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
sveltia-cms-auth 5d6a7d6 Commit Preview URL Jul 07 2025, 07:15 AM

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.

2 participants