CorsRegistration(pathPattern: String)
Create a new CorsRegistration that allows all origins, headers, and credentials for GET, HEAD, and POST requests with max age set to 1800 seconds (30 minutes) for the specified path.
pathPattern - the path that the CORS configuration should apply to; exact path mapping URIs (such as "/admin") are supported as well as Ant-style path patterns (such as "/admin/**").