-
Hello AdonisJS maintainers. I'm new to trying to use AdonisJS in my production. I saw some code from websites built with this framework using the But after I tried it myself, I actually get a redirect to the main route of the website, after I understand some code from AdonisJS, it turns out that this I try to inspect on my website, and the value of the referrer header I get is correct, the main route of the website. Maybe the Please enlighten, apologize, and thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hello, Can you provide a reproduction repo to view this error? Thanks |
Beta Was this translation helpful? Give feedback.
-
Well, after a long time of analyzing, finally found the main problem. I'm using WSL and the referrer header doesn't represent the real thing at all (it can only show the root domain, not the full url). Once I tried running it on Windows (main host), it worked! On the server, because of Nginx configuration, I set "strict-origin" in the header "Referrer-Policy" before, after I commented (disabled) the configuration line, everything worked normally. |
Beta Was this translation helpful? Give feedback.
Well, after a long time of analyzing, finally found the main problem.
I'm using WSL and the referrer header doesn't represent the real thing at all (it can only show the root domain, not the full url). Once I tried running it on Windows (main host), it worked!
On the server, because of Nginx configuration, I set "strict-origin" in the header "Referrer-Policy" before, after I commented (disabled) the configuration line, everything worked normally.