check -csp: let forms send where they say #35

Merged
jcoffey-dev merged 1 commits from check/form-action into main 2026-10-17 01:19:48 +00:00
Owner

The policy check -csp prints always said form-action 'self'. A form that sends to another site, like the shop pack's Buy now going to the payment provider's checkout, would be refused by the browser once a site put that policy in its server config.

The hosts of <form action> and <button formaction> addresses on another site are now added to form-action. Found while getting a shop ready to go live.

The policy `check -csp` prints always said `form-action 'self'`. A form that sends to another site, like the shop pack's Buy now going to the payment provider's checkout, would be refused by the browser once a site put that policy in its server config. The hosts of `<form action>` and `<button formaction>` addresses on another site are now added to form-action. Found while getting a shop ready to go live.
jcoffey-dev added 1 commit 2026-10-17 01:18:11 +00:00
check -csp: let forms send where they say
ci / editor-ui (pull_request) Successful in 1m17s
ci / go (pull_request) Successful in 1m22s
e64bc68e50
The policy always said form-action 'self', so a form that sends to another
site, such as the shop pack's Buy now going to a payment provider's
checkout, was refused by the browser once a site used the policy. Form
actions and button formactions on another host are now added to it.
jcoffey-dev merged commit d741c767fa into main 2026-10-17 01:19:48 +00:00
jcoffey-dev deleted branch check/form-action 2026-10-17 01:19:48 +00:00
Sign in to join this conversation.