calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.47k stars 232 forks source link

Login Forbidden #763

Closed qu3stbaby closed 6 years ago

qu3stbaby commented 6 years ago

Please fill out the templates below to the best of your ability, based on whether your problem is with using the website or with running your own server.

Website Problem

Please confirm whether you've tried the following debugging steps:

Description of the Problem

System Information

Server Problem

System Information

qu3stbaby commented 6 years ago
screen shot 2018-08-09 at 19 43 18

like this

calzoneman commented 6 years ago

Can you check sys.log? If you see [WARN] Attempted login from non-approved domain <something>, that's why it's being rejected. In config.yaml, the root-domain must be set to match your website's domain. Logins are rejected if the Host header sent by the browser does not match a subdomain of the root domain, for security reasons (to prevent someone from being able to register example.com, point it to your IP address, and steal logins while acting as a transparent proxy).

qu3stbaby commented 6 years ago

It says Attempted login from non-approved domain localhost I don't know why

calzoneman commented 6 years ago

In your screenshot, the domain is not localhost, so that would be why. Please refer to my above comment about configuring root-domain.

qu3stbaby commented 6 years ago

This problem is solved but another problem (same as #704) Socket.io library could not be loaded And I cannot solve this problem following the instructions in that guide.

P.S Use Apache2 reverse proxy

calzoneman commented 6 years ago

I believe the error you are referring to is this one: https://github.com/calzoneman/sync/blob/3.0/www/js/callbacks.js#L1225-L1232.

Could you please paste the error message exactly as it appears on the page? What have you tried to investigate the problem yourself?

calzoneman commented 6 years ago

Closing due to inactivity and because it's likely a configuration issue and not a software bug.