@mahidul-moon good question, it is because Postman automatically sends the browser cookie if it detects one 🙂
It's actually really annoying how postman does that...
Use the domain name to access the web site and report the following error, instead of using nginx as the reverse proxy.
Who can help?
The connection to the forum is broken. We are trying to reconnect. Please be patient.
Don't get the question! Are you trying to only use nodejs as webserver. Please explain you issue more in detail
@jenkler My website can be accessed through IP, there will not be the error as above, access to the domain name will be wrong.
Nice, problem solved then
Likely config.url
is not set properly.
@jenkler My problem hasn't been solved yet.
Your config.json needs to have your domain in the url:
{
"url": "https://www.yourdomain.com",
....
}
Did you restart NodeBB after changing config.json
?
@julian Now through the domain name access is not wrong, but through the IP access will appear before the error, how should this deal with?
@9652301 In your reverse proxy's config, direct IP address access should be prohibited. Instead, catch those requests and redirect them to the proper hostname.
@julian I've solved the problem. Thank you very much!