Can't show PDF file preview using Embed API - CORS
Hi, I'm working on a React project where I want to display a PDF preview in a component. The pdf source comes from Firebase Storage. I'm passing the url from firebase. The thing is that when I render the component, my console is showing a CORS error saying that the request was blocked by CORS policy.
I have read the documentation and I know that I need to enable CORS headers on my pdf resource. I have already done that but it doesn't seem to work.

This is the error
This is my ViewSdkClient.js code

I have searched for similar posts on this community but i failed to find a solution
I'm not sure if I might be missing something or if my syntax might be wrong.
Could you please help me? Thanks!!
