File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -234,21 +234,21 @@ Edit [mailtrain.conf](setup/mailtrain.conf) (update application folder) and copy
234
234
235
235
The (experimental) Mailtrain Subscription Widget allows you to embed your sign-up forms on your website. To embed a Widget, you need to:
236
236
237
- Enable cross-origin resource sharing in your ` config ` file and whitelist your site:
237
+ Enable cross-origin resource sharing in your ` server/ config/local.yaml ` file (you may need to create it if it doesn't exist) and whitelist your site:
238
238
239
239
```
240
- [ cors]
241
- # Allow subscription widgets to be embedded
242
- origins=['https://www.example.com']
240
+ cors:
241
+ # Allow subscription widgets to be embedded
242
+ origins=['https://www.example.com']
243
243
```
244
244
245
- Embed the widget code on your website:
245
+ Embed the widget code on your website using the untrusted endpoint :
246
246
247
247
```
248
- <div data-mailtrain-subscription-widget data-url="http://domain /subscription/Byf44R-og/widget">
249
- <a href="http://domain /subscription/Byf44R-og">Subscribe to our list</a>
248
+ <div data-mailtrain-subscription-widget data-url="http://lists.example.com /subscription/Byf44R-og/widget">
249
+ <a href="http://lists.example.com /subscription/Byf44R-og">Subscribe to our list</a>
250
250
</div>
251
- <script src="http://domain /subscription/widget.js"></script>
251
+ <script src="http://lists.example.com/static /subscription/widget.js"></script>
252
252
```
253
253
254
254
## Cloudron
You can’t perform that action at this time.
0 commit comments