Scavenger233 / REST-API-Project

Building a REST API project from scratch.
0 stars 0 forks source link

localhost page error #2

Closed Scavenger233 closed 1 week ago

Scavenger233 commented 1 week ago

Image look like this after I log in

Scavenger233 commented 1 week ago

We need below in the security class

//This allows non-browser POST requests to go through.
        http.csrf().disable(); 
        //This ensures that the H2 console can be properly embedded in a webpage.
        http.headers().frameOptions().disable();