You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Make sure that the server response includes the `Access-Control-Allow-Origin` header when serving the JavaScript file.
33
+
+
34
+
[source,js]
35
+
----
36
+
// Either of the two values is valid:
37
+
38
+
Access-Control-Allow-Origin: *
39
+
Access-Control-Allow-Origin: your page's origin
40
+
----
41
+
42
+
TIP: To learn more about how browsers handle script errors, see the MDN page on the https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#notes[onerror] event.
0 commit comments