+Cross-Origin Resource Sharing (CORS) lets a server relax the browser's same-origin policy by
+naming the origins that are allowed to read its responses in the
+Access-Control-Allow-Origin response header. A policy that allows any origin, for
+example by sending Access-Control-Allow-Origin: * or by using a framework's "allow any
+origin" or "permissive" CORS configuration, lets every website read the responses that the browser
+requests without credentials.
+
+This is harmless for truly public data. It exposes data that is protected only by where the client
+is, such as a service on localhost or on a private network that the attacker cannot reach directly
+but the victim's browser can. A browser does not honor a wildcard for requests that carry
+credentials (cookies or HTTP authentication), so a wildcard alone does not expose data that a login
+session protects. That data is exposed when a policy reflects the request origin (for example
+AllowOrigin::mirror_request() or CorsLayer::very_permissive()) and also
+sets Access-Control-Allow-Credentials: true.
+
+This query recognizes, among others: allow_any_origin() (warp, actix-cors),
+Cors::permissive() (actix-cors), CorsLayer::permissive(),
+CorsLayer::very_permissive() and allow_origin with Any,
+"*", AllowOrigin::any() or AllowOrigin::mirror_request()
+(tower-http), AllowedOrigins::all() (rocket_cors),
+AccessControlAllowOrigin::Any (iron / hyper 0.10), and setting the
+Access-Control-Allow-Origin header to "*" directly.
+
+Allow only an explicit list of trusted origins. If the endpoint really serves only public data +that every website may read, the alert can be dismissed. +
+
+In the following example, an axum application uses a tower-http CorsLayer that
+allows the wildcard origin, so any website can read the JSON responses:
+
+The fix is to allow only the trusted front-end origin: +
+