title: The script resource is behind a redirect, which is disallowed
body: <p>I'm implementing firebase messaging but i'm getting a error on console in chrome.</p>
  
  <blockquote>
    <p>The script resource is behind a redirect, which is disallowed.
    /firebase-messaging-sw.js Failed to load resource: net::ERR_UNSAFE_REDIRECT</p>
  </blockquote>
  
  <p>The file /firebase-messaging-sw.js is in public folder and i'm using FCM installation like this <a href="https://github.com/firebase/quickstart-js/tree/master/messaging" rel="noreferrer">https://github.com/firebase/quickstart-js/tree/master/messaging</a></p>
  
  <p>But the link the authorization is a link like <a href="https://09029e3f.ngrok.io/admin/pt/settings/notifications" rel="noreferrer">https://09029e3f.ngrok.io/admin/pt/settings/notifications</a>.
  but the main web site is on main.domain.com</p>