Lesson:
Cross-Site Script Inclusion
Public previewWant everyone on your software team to learn this? Get completion tracking and compliance reporting with Hacksplaining for Teams. Free 14-day trial.
Train my teamcross-domain-loading.js/**
* Load in a JavaScript library from another origin.
*/
fetch('https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.js').then((response) => {
// This will succeed because browsers will allow
// JavaScript to be loaded from other origins.
});