Web Development

General discussion


Secure and Nonsecure items

By webgrunt ·
What constitutes "nonsecure" items on a web page?

I have a webpage that is hosted on IIS 5.0 with .net Framework SP2 and from the very root of the site IIS is set to require SSL. It all is fine at the root but one folder level down I have a portals aspx app and when that page loads I get the "this page contains both secure and nonsecure items" warning. The page contains links to http:// pages of external sites but no graphics are being loaded from anywhere other than my secure site and it's sub folders.

What could be the cause?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

relative URLs?

by Jay Eckles In reply to Secure and Nonsecure item ...

Is it possible you're referring to images using relative URLs? i.e.:
<img src="../../image.gif" ...>

If so, perhaps the relative URL is resolving to an http url instead of an https url. That doesn't seem intuitive, but try changing all the URLson a page from relative to absolute using https as the protocol.

Also note that images aren't the only items embedded in a page - if you have external Javascript, external CSS, iframes, etc., those things also have to use https.

If you have some sample source you can show us, it might help diagnose the problem. Otherwise, as you can tell, I'm just taking a shot in the dark.

Good luck.


Related Discussions

Related Forums