Content Security Policy for Video Preview

Hi. I am developing a PWA (Progressive Web App) using Ionic. It has a feature which upload photos and short videos to Firebase. However, when the selected file is about to show preview, I encounter 2 errors for Content Security Policy. By the way, I made preview work with photos but not with videos. My PWA is in localhost yet. Thanks!
Here are the errors :

  1. Refused to load media from ‘data:video/mp4;base64,’ because it violates the following Content Security Policy directive: “default-src gap://ready file://* *”. Note that ‘media-src’ was not explicitly set, so ‘default-src’ is used as a fallback.
  1. Refused to load media from ‘data:video/mp4;base64,’ because it violates the following Content Security Policy directive: “media-src *”.