I have a SpringBoot 2.1.7.RELEASE app. with Thymeleaf template engine I hace this piece of code in a Thymeleaf template, but the image does not show up
<object data="assets/img/icons/ico_status_up.svg" type="image/svg+xml">
<img th:src="@{assets/img/icons/ico_status_up.png}" alt="UP">
</object>
I and see this error in the console of the browser:
Refused to display 'http://localhost:8080/bonanza/pecador/assets/img/icons/ico_status_up.svg' in a frame because it set 'X-Frame-Options' to 'deny'.
I use spring-security in my project:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- Spring Security -->
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity5</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>