docs: update README to include CORS support for embeddable forms

This commit is contained in:
2025-10-30 13:09:07 +01:00
parent b5a0817760
commit dc3a888da3

View File

@@ -83,7 +83,7 @@ Access the admin interface at `http://127.0.0.1:5002/auth/login` using the confi
## Embeddable Forms ## Embeddable Forms
The application provides embeddable contact and newsletter subscription forms that can be integrated into other websites via iframe. The application provides embeddable contact and newsletter subscription forms that can be integrated into other websites via iframe. CORS (Cross-Origin Resource Sharing) headers are automatically added to API endpoints to allow forms embedded on external sites to submit data successfully.
- `GET /embed/contact`: serves an HTML page with a contact form that can be embedded in an iframe on external sites. - `GET /embed/contact`: serves an HTML page with a contact form that can be embedded in an iframe on external sites.
- `GET /embed/newsletter`: serves an HTML page with a newsletter subscription form that can be embedded in an iframe on external sites. - `GET /embed/newsletter`: serves an HTML page with a newsletter subscription form that can be embedded in an iframe on external sites.