Unclear use of COMMENTO_ORIGIN
For testing a couple of the previous issues I've reported, I have the Commento Docker image available through multiple locations:
https://api.example.com/comments (currently doesn't work: #61 (closed)) and
COMMENTO_ORIGIN is set to
https://api.example.com/comments and I am able to access Commento through
https://comments.example.com without issues. When I view the code snippet for embedding Commento into a page from
https://comments.example.com, it shows
COMMENTO_ORIGIN isn't being used to limit Commento to being accessed from the configured location, maybe it would be better to get the origin based on the request URL? Thus if the path for a page is
/dashboard#modal-close (as it currently is while I write this), that would be trimmed off the request URL and give
https://api.example.com/comments, or wherever it is being accessed from.
For the record, I kinda like Commento being available from multiple locations, so I can use
https://comments.example.com for sites with domain
https://comments.other-example.com for sites under
other-example.com, and use just one Commento instance.