Hi Leonardo
I guess the main cause is that the */ect *is not in the list of secure
path of the application. Spring Boot , by default, permit access to
/css/**, /js/**, /images/**, and /**/favicon.ico. you can use custom theme
for this purpose.
On Tuesday, May 14, 2024 at 3:39:50 PM UTC+3:30 Leonardo Ferreira wrote:
> Hi everyone!
>
> I'm migrating from version 6.6.15 to 7.0.4 and I'm facing a small problem.
> My customized html pages are unable to access the .css and .js files that
> are also customized.
> It is important to comment that in version 6.6.15 everything works
> perfectly.
>
> My files are in the following structure:
> src:
> - main:
> - resources:
> - templates:
> - fragments
> - login
> - logout
> * layout.html*
> - static:
> - ect:
> - css
> - js
> - img
> * loginform.css*
>
> My *layout.html* file has the following references:
> <link rel="shortcut icon" th:href="@{/ect/img/favi-ect.png}"
> type="image/x-icon"/>
> <link rel="stylesheet" th:href="@{/ect/css/bunker.css}"
> type="text/css">
> <link rel="stylesheet" th:href="@{/ect/css/global.css} + '?v=2'"
> type="text/css">
> <link rel="stylesheet" th:href="@{/ect/loginform.css}" type="text/css">
> ...
> <script th:src="@{/ect/js/bunker.js}"></script>
> <script th:src="@{/ect/js/alertaerro.js}"></script>
> <script th:src="@{/ect/js/menu.js}"></script>
> <script type="text/javascript"
> th:src="@{#{webjars.jquery.js}}"></script>
>
> The strange thing is that in the browser console I get 403 errors. Ex:
>
> GET http://localhost:8080/ect/css/bunker.css net::ERR_ABORTED 403
> (Forbidden)
> GET http://localhost:8080/ect/js/alertaerro.js net::ERR_ABORTED 403
> (Forbidden)
>
> Has anyone gone through something similar or could guide me on how to get
> around this issue?
>
> Thank you for the help!
>
> Leonardo.
>
>
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/0f9a9df9-c8bc-4d3f-b96b-d2a0a61557c6n%40apereo.org.