After researching a little, I discovered that in version 7.0.x a new class 
was added restricting access to the application directories. The class name 
is: CasWebSecurityConfigurerAdapter
After inspecting it, I changed the directory structure and it started 
working again.

src:
 - main:
   - resources:
      - templates:
           - fragments
           - login
           - logout 
          * layout.html*
      - static:
              - css
              - js
              - img
              * loginform.css*




Em terça-feira, 14 de maio de 2024 às 09:09:50 UTC-3, Leonardo Ferreira 
escreveu:

> 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/4c5b4b8e-d9d7-4f60-88d2-20eeb1bf809fn%40apereo.org.

Reply via email to