• Hi @PDAS213296 (Community Member)​,

     

    This flaw can be reported when a Spring controller @CrossOrigin annotation is used without any restrictions. By default, this allows cross-origin resource sharing (CORS) from any domain. This could allow your endpoint to process requests from malicious sites. The recommendation is to use the "origins" attribute to restrict CORS to trusted sites, for example:

     

    @CrossOrigin(origins = "https://trusted.example.com")

     

    Kind regards,

    Duncan

     

     

    Expand Post

Topics (5)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.