在angular2应用程序中允许权限时发生以下错误.我正在使用最新版本的角度cli.
The script has an unsupported MIME type ('text/html'). https://epush.in/firebase-messaging-sw.js Failed to load resource: net::ERR_INSECURE_RESPONSE main.b757377….bundle.js:30496 permission An error occurred while retrieving token. V {code: "messaging/Failed-serviceworker-registration",message: "Messaging: We are unable to register the default s…). (messaging/Failed-serviceworker-registration).",browserErrorMessage: "Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/html').",stack: "FirebaseError: Messaging: We are unable to registe…in/main.b7573773d12a16423658.bundle.js:1572:3907)"}