0

include part of the page to be secure ssl.

asked 2018-03-20 15:01:41 +0800

Tebogo gravatar image Tebogo
1 1

updated 2018-03-20 16:13:37 +0800

On my login page, I have to two png images and I want to include them on my ssl certificate. below is my code:

<image src="/resources/img/SonLight3L.png" style="margin-left:auto; margin-right:auto;"/>

Firefox web browser always generate the following error message when using https://: 'Secure Connection

Firefox has blocked parts of this page that are not secure'

Part of the page Firefox is complaining about is the image on the login page which is represented by the code above.

The following code is added to web.xml

<security-constraint>
    <display-name>Constraint1</display-name>
    <web-resource-collection>
        <web-resource-name>TLPMIS-war</web-resource-name>
        <description/>
        <url-pattern>/admin/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <description/>
        <role-name>Admin</role-name>
    </auth-constraint>
</security-constraint>

When I replace '/admin/' with '/' from <url-pattern> login page does not display and that leaves me without access to the website.

Your help will be highly appreciated.

delete flag offensive retag edit

Comments

replace <url-pattern>/admin/*</url-pattern> with <url-pattern>/*</url-pattern>

Tebogo ( 2018-03-20 16:17:40 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2018-03-20 15:01:41 +0800

Seen: 7 times

Last updated: Mar 20 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More