How do APIs that could be accessed from anywhere, but need authentication handle JWTs if you can't set Access-Control-Allow-Origin: *
and fetch(url, { credentials: "include", });
simultaneously?
For example, if you have a public site that anyone can register for and they make requests from their browser, how can your API know which origins to whitelist?