If you’re using Java configs instead of XML configs, put this in your WebSecurityConfigurerAdapter.configure(HttpSecurity http)
method:
http.headers().frameOptions().disable();
More Related Contents:
- Filter invoke twice when register as Spring bean
- Spring security CORS Filter
- How to enable HTTP response caching in Spring Boot
- HttpSecurity, WebSecurity and AuthenticationManagerBuilder
- Multiple WebSecurityConfigurerAdapter in spring boot for multiple patterns
- Spring Security 5 : There is no PasswordEncoder mapped for the id “null”
- Securing Spring Boot API with API key and secret
- Spring Security HTTP Basic for RESTFul and FormLogin (Cookies) for web – Annotations
- How do I disable resolving login parameters passed as url parameters / from the url
- How do I add method based security to a Spring Boot project?
- What does Cookie CsrfTokenRepository.withHttpOnlyFalse () do and when to use it?
- disabling spring security in spring boot app [duplicate]
- Disabling a filter for only a few paths
- How to configure port for a Spring Boot application
- How to fix role in Spring Security?
- What is this spring.jpa.open-in-view=true property in Spring Boot?
- How to manage exceptions thrown in filters in Spring?
- Why does my Spring Boot App always shutdown immediately after starting?
- How to set base url for rest in spring boot?
- What is the difference between putting a property on application.yml or bootstrap.yml in spring boot?
- package org.springframework.boot does not exist
- How to exclude *AutoConfiguration classes in Spring Boot JUnit tests?
- Spring Security multiple url ruleset not working together
- Encoded password does not look like BCrypt
- Spring security added prefix “ROLE_” to all roles name?
- Why this Spring application with java-based configuration don’t work properly
- Spring Boot access static resources missing scr/main/resources
- bootstrap.yml configuration not processed anymore with Spring Cloud 2020.0
- How to modify request body before reaching controller in spring boot
- Spring Boot – Reading Text File using ResourceLoader