My firebase authentication is working fine in development but the errors started after it was deployed to heroku. It is a react app with an express backend. My index.html has the following meta tag
<meta
http-equiv="Content-Security-Policy"
content="script-src 'self' 'unsafe-eval' 'unsafe-inline' https://cdn.firebase.com https://*.firebaseio.com https://*.firebaseio.com; object-src 'self'; connect-src 'self' 'unsafe-inline' 'unsafe-eval' https://googleapis.com https://*.googleapis.com ; "
/>
I keep getting the following errors whenever I try to use any of the firebase features
Refused to connect to 'https://securetoken.googleapis.com/v1/token?key=AIzaSyCoZVOHUdschTajsOfqttGL2QLlGUhLIOg' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
Refused to load the image 'https://res.cloudinary.com/iamxxx777/image/upload/v1638485595/mvghlsnx3vsmd1sfqjry.jpg' because it violates the following Content Security Policy directive: "img-src 'self' data:".
Any solutions please?