Hello, I am a free hosting customer, and for a project, I need to enable the following: “should serve this file with a content-type of application/json”
So if I upload a .json and share the file link but without the .json extension, the browser returns a web page with the text of the json file.
I have tried uploading a .json but if I enter the address of the uploaded file, without putting the .json extension, I get an error (as if it did not exist).
If you upload a file named app.json and then navigate to your-website.com/app, the server will try to find a file named “app”. That’s why you are seeing a 404 error.
Given that the file in the root directory says DO NOT EDIT THIS FILE at the top of it, it should be pretty clear that you should create one in the folder of your website.