Cross-Site Script Inclusion

hacked.html
<script>

  /**
   * If an this script is hosted on an attacker's website, and one of your
   * users is tricked into visiting that site...
   */
  fetch('https://www.yourwebsite.com/js/bundle.js')
   .then(response => {
     /**
      * ...the attacker extract the API key here, and start impersonating
      * your user.
      */
   });

</script>