I am developing a plugin that uses the AWS javascript browser sdk. I am running into issues with preflight CORS.
Access to XMLHttpRequest at 'https://s3.amazonaws.com/' from origin 'https://alm-
ui.bubbleapps.io' has been blocked by CORS policy: Response to preflight request
doesn't pass access control check: No 'Access-Control-Allow-Origin' header is
present on the requested resource.
This is purely a client (browser) issue on preflight. I have verified my code works by disabling security on chrome ( --disable-web-security). When Chrome has security disabled no errors and the CORS issue of course goes away.
I am wondering how to get around this issue as I can not ask plugin users to disable security.
I’m running into a similar problem. I’m developing a plugin that imports a CSV file and parses it with Papa Parse. When I parse the file using one set of parameters for Papa Parse, I don’t get the error. When I parse it with another, I get the error.
I’ve used both Chrome and Firefox and get the same error. I put a series of console.log statements in the plugin to see what’s happening.
I’ve attached a screenshot from Firefox and Chrome gives me the same error message.