Using a Custom Host
If you’re using an aggressive Content Security Policy (CSP), or simply want as many assets to be routed through your domain as possible, you may want to proxy all JamComments assets through a custom host. Do not do this unless you have an appropriate URL rewrite in place. If you enable this feature before then, the JamComments form will not function on your site.
Setting a Custom Host
In the JamComments admin, navigate to your site and scroll down to the “Custom Asset Host” section.
In the form, enter a host through which you’d like to serve assets. Hosts with paths are valid too. For example, all of these are valid:
- your-site.com
- blog.your-site.com
- your-site.com/some/path
Saving the form will trigger a rebuild of your site (assuming you have a webhook set up), so be sure to have your rewrite in place.
Setting Up a Rewrite
It’ll look a bit different depending on your platform: