docs: update README to include CORS support for embeddable forms
This commit is contained in:
@@ -83,7 +83,7 @@ Access the admin interface at `http://127.0.0.1:5002/auth/login` using the confi
|
||||
|
||||
## 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/newsletter`: serves an HTML page with a newsletter subscription form that can be embedded in an iframe on external sites.
|
||||
|
||||
Reference in New Issue
Block a user