keystone: Cannot access admin page in product environment
Bug report
Cannot access admin page in product environment
Project: demo-projects/meetup and custom with yarn create keystone-app ...
yarn build && yarn start
goto login page http://localhost:3000/admin/signin I tried with nuxt, next. The admin page is still accessible only in the dev environment
System information
- OS: Windows
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 24 (15 by maintainers)
My solution here: (And it works for me!)
index.js
of keystone)nginx.conf
)Knowledge Page: https://expressjs.com/en/guide/behind-proxies.html
This worked for me, thanks @Shinerising
This looks like another case of the secure cookie/proxy issue (#1887). It’s is a complex topic that cuts across Keystone’s internals, project code, deployment config and browser behaviour. I’ve written up what I know here:
Keystone 5: Secure Cookies and Reverse Proxies
Quoting from the TL;DR – you should ensure that…
X-Forwarded-Proto
header to requeststrust proxy
is set)Could someone having this issue please test the following configuration:
that didn´t wor for me
Also getting this with Nginx reverse proxy. Any solutions out there, or does this need a lib change?
Same Problem here
I am running the server over https:// and still cannot login. Even on the production. if I run yarn dev and go to url, i can login but not when I do yarn start. It will give me wrong password error if I put wrong credentials but right password will only refresh the page. Basically it knows the password is right but not moving forward. works wonderfully when running yarn dev. What can we do?