Embed pdf from Media folder from another url

I want to embed a pdf file from a React application. This React application is hosted on another url. Strapi has a frame self policy. How can I configure the url from where the image is embedded.

The following error message is displayed when opening an embed with the attribute src=“http://localhost:8080/uploads/file.pdf”: Refused to frame ‘http://localhost:8080/’ because an ancestor violates the following Content Security Policy directive: “frame-ancestors ‘self’”.