Ok, so I'm using Heroku to host Flarum. That's not the problem.
I am also using Freenom with a DNS CNAME record pointing to Flarum.
Freenom Domain: http://discuss.node-flarum.tk
Heroku App: http://discussion-flarumjs.herokuapp.com
When I click the sign in / log in buttons (in the modals) while I'm in the Freenom domain, it gives me an error, and prompts me to refresh the page.
The sign up / register button gives me the following error when I use the Freenom domain:
0
POST http://discussion-flarumjs.herokuapp.com/register
null
Similarly, the login button gives me the following error, but only in Freenom:
0
POST http://discussion-flarumjs.herokuapp.com/login
null
Both Sign Up & Login Methods work completely fine in the original domain, meaning Heroku.
Please help. I don't know if I should change the Flarum url to the Freenom domain or not, although I do not want to change it, but I will if I have to.
Thanks! ?