You can change CORS Policy when the file is uploaded on your server.. but what happens when you use a google sheet file?
Google has changed CORS Policy (due to security reasons) and you cannot open files using other programs, anymore.
I found a solution for anyone who is interested in:
The link we were using in order to open a csv file was something like this:
https://docs.google.com/spreadsheets/d/e/.../pub?output=csv
In order to bypass cors policy and open your csv file, the link should be in this format:
https://docs.google.com/spreadsheets/d/SHEET_KEY/gviz/tq?tqx=out:csv&sheet=SHEET_NAME
* You can find the sheet key by opening your sheet file in google drive
https://docs.google.com/spreadsheets/d/SHEET_KEY/edit#gid=0
** SHEET_NAME, not your file's name