Can't register. Error code 403. #1902
-
Well I integrated Waline in Docker Compose with MongoDB on my own instances, not using any public services. When I firstly configured the Docker Compose, I found that I had to add "?authSource=admin" after my Database's name or the comments could not even be sent. (Yes my MongoDB was in container too, as a dependency of waline and I operated it with the init root user in 'environment:') Then, when I tried to use the register function of Waline, after filling out all the information, the system throwed an 403 error to me like below. I checked the log of the container and it said:
I searched the Internet and did not found an answer. There was a similar thread #1338 but it was 404. Could someone help me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Well I found that there could not be two or more domains in SECURE_DOMAINS env. |
Beta Was this translation helpful? Give feedback.
-
403 Error is that accessing domain names are not in Secure_Domains. The format of Secure_DoMains is multiple domain names of the comma connection. If the configuration is not effective, it is recommended to check the configuration. |
Beta Was this translation helpful? Give feedback.
403 Error is that accessing domain names are not in Secure_Domains. The format of Secure_DoMains is multiple domain names of the comma connection. If the configuration is not effective, it is recommended to check the configuration.
https://github.com/walinejs/waline/blob/main/packages/server/src/config/config.js#L115
https://github.com/walinejs/waline/blob/main/packages/server/src/logic/base.js#L23-L44