https://docs.spring.io/spring-framework/docs/current/reference/html/web-reactive.html#webflux-cors

For security reasons, browsers prohibit AJAX calls to resources outside the current origin. For example, you could have your bank account in one tab and evil.com in another. Scripts from evil.com should not be able to make AJAX requests to your bank API with your credentials — for example, withdrawing money from your account!

原文地址:https://www.cnblogs.com/ukzq/p/14082845.html