loadDocument error

I find this error when provided PDF data URL inside instance.loadDocument() function

Access to fetch at ‘http://127.0.0.1:9614/204’ (redirected from ‘https ://firebasestorage.googleapis.com/v0/b/pdf-sign-react-cf85f.appspot.com/o/docToSign%2FCeQvMWQ1Sme7n7T9RlELokITemC31648624488036.pdf’) from origin ‘http://localhost:3000’ 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. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi,

Looks like it’s related to the configuration of the firebase storage. Please take a look at the following links and see if they’re helpful with resolving the issue.

https://www.google.com/search?q=firebase+storage+cors+error&rlz=1C5CHFA_enCA906CA907&ei=gndGYsS_G6Gxmgfk_a6YDQ&ved=0ahUKEwjEiMno-_H2AhWhmOYKHeS-C9MQ4dUDCA4&uact=5&oq=firebase+storage+cors+error&gs_lcp=Cgdnd3Mtd2l6EAMyBQgAEIAEOgcIABBHELADSgQIQRgASgQIRhgAUL0RWL0RYKQTaAFwAHgAgAGCAYgBggGSAQMwLjGYAQCgAQHIAQjAAQE&sclient=gws-wiz

Thanks.

Wanbo

I got the same error for cloudinary, and I checked well that cloudinary link cause no CORS issue…
The problem is coming from the redirection

Access to fetch at ‘http://127.0.0.1:9614/204’ (redirected from

So is that link for your local server? Not sure why it’s redirected from the firebase.