Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource"
I'm trying to use REST api to query a library to find all the file names in it so that I can populate a dropdown on another site. This apparently violates the CORS policy. How do I get around this since I can't modify the code that SharePoint is using?
I'm using this endpoint:
"https:/xxx/sites/xxx/_api/Web/GetFolderByServerRelativeUrl('/sites/yyyy/Database%20documents/" + folderName + "')/files?$select=Name")