I serve my frontend using nginx.
It is working fine in incongnito for everyone. But for most browsers it gives the above error.
I have tried adding homepage property to package.json. It changed the routes in index.html but the problem still persists.