It's common practice to include scripts from other origins with script tags but when you use fetch calls on other origins then everything must be configured carefully other wise you will get a CORS error.
Does the script tag somehow bypass CORS? How does that work?