CORS-enabled form endpoint example

This endpoint accepts HTML form submissions from any origin and returns an HTML response. It is intended as a reference for customers of HTML Macro for Confluence to demonstrate what a CORS-compatible form target looks like.

Required response headers

For form submissions via HTML Macro used in Confluence pages, your server must include these headers in its response:

Access-Control-Allow-Origin: *

Try it

Submit this form — the response will appear in place of the form, demonstrating the in-page navigation behaviour of HTML Macro.