How to add a netlify.toml with manual deploys

How can I add a netlify.toml file while deploying with manual deploys? Is there any way?

(I was completely happy with manual deploys. Everything went fine quite easily. Until I bumped into an error –

Access to XMLHttpRequest at ‘https://xxx.xxxxxxxxxx.com/’ from origin ‘https://alonn.netlify.app’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

– as my browser console called it. I searched this error, and found answers which required editing a netlify.toml file, located in the “root of your repository”.
Problem is, I don’t have any git repository – and, by the way, what’s “root”? )

Root is the base directory or the project folder.

If you don’t have a repo, just add the file in the folder that you drag and drop in the UI.

3 Likes