I first learned about CORS the way I learn about a lot of things in web development: by copy/pasting an error message…