Download the .htaccess file for your specific magento version and put it inside the pub/static folder in the default magento directory and these errors should vanish. Also check the root directory .htaccess file.
I also faced a very similar issue. After a lot of deliberation I was able to understand that this problem mainly occurred because I deleted the .htaccess file inside the pub/static folder.
I hope it will help you!