Refused to connect to http://localhost:1337/admin/init

I solved this problem regard to this issue Strapi is ignoring the server config PUBLIC_URL and calling back to localhost:port from the browser · Issue #12129 · strapi/strapi · GitHub
Just run a simple command npm run build in the Dockerfile and everything works.

2 Likes