Shared Discourse/Static Site Login

Exactly. It’s just HTML, CSS, and typical front-end JavaScript.

In an ideal scenario I’d like to be able to use JavaScript on the static site, that runs in the browser, to be able to pull data from Discourse.

Notifications is one example and an embed for that would be great.

Another example, I’d love to be able to set a User Field over on Discourse for people to fill out. Then over on the static site, be able to access that user field to change how content is rendered (via JavaScript). For example, to re-order content to customize it for the user.


I know it’ll be an unsupported hack, but is there a way I can change how Discourse sets its session cookie to not include the subdomain, that will survive updates?