Compare commits
2 Commits
b5a0817760
...
3a11b00fd5
| Author | SHA1 | Date | |
|---|---|---|---|
| 3a11b00fd5 | |||
| dc3a888da3 |
@@ -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.
|
||||
|
||||
@@ -22,6 +22,12 @@
|
||||
<label for="message">Message:</label>
|
||||
<textarea id="message" name="message" required></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="consent"
|
||||
>I agree to the processing of my submitted data.</label
|
||||
>
|
||||
<input type="checkbox" id="consent" name="consent" required />
|
||||
</div>
|
||||
<button type="submit">Send Message</button>
|
||||
</form>
|
||||
<div id="responseMessage"></div>
|
||||
|
||||
Reference in New Issue
Block a user