Error processing content_security_policy.extension_pages: ‘script-src’

I'm getting this error in Firefox MV3.
Reading manifest: Error processing content_security_policy.extension_pages: ‘script-src’ directive contains a forbidden http: protocol source

This is the code of the line that is calling the API. The PLASMO_PUBLIC_BASE_PATH is "http://localhost:8080"
const myApi = new Api(new Configuration({ basePath: process.env.PLASMO_PUBLIC_BASE_PATH, apiKey: process.env.PLASMO_PUBLIC_CLIENT_API_KEY }))

Is there any solution for this?
Was this page helpful?