I’m trying to test an Uppy integration in a test environment with a staging SSL cert from LetsEncrypt. It is not going well, because I see an error when I try to upload files.
In Firefox, I see a failed OPTIONS request to https://uppy.example.com/s3/multipart with “CORS Failed” error. I also see a failed POST to the same URL, with NS_ERROR_DOM_BAD_URI.
In Brave, the same set of actions uploading a file I see different errors. “(failed) net::ERR_CERT_AUTHORITY_INVALID” on both OPTIONS and POST requests.
The CORS error I think has to do with how I’m making the requests. I have uppy.example.com, and next.example.com. next.example.com is where people visit, and uppy.example.com is where my Uppy companion server is at. Each of them are using LetsEncrypt staging SSL certs.
Seeing as it is a test environment with a staging SSL cert, Is there maybe a way to disable the SSL verification? I think that’s what’s causing the problem that Brave is seeing. Firefox on the other hand confuses me since it shows a CORS error. I think CORS errors are caused when the Companion server receives a request from a non-whitelisted host. In Uppy companion, I think this whitelist is configured using COMPANION_CLIENT_ORIGINS environment variable, which I have configured to be https://next.example.com.
I think I have COMPANION_CLIENT_ORIGINS configured correctly, so I don’t know why I’m seeing the CORS error in Firefox.