This is normal behavior, it should not work with port 8000 after setting the configs.
If you haven’t deleted port 8000 everywhere in the configs, you may be getting these errors.
If you want to use port 8000 it should be specified everywhere, if not, then it should be absent everywhere.
I also did not add add_header 'Access-Control-Allow-Origin'
to my config.
If you have enabled debugging, view the logs through the developer tool in the mozilla browser.