[Seaside] SSL
Ramon Leon
rleon at insario.com
Sat Apr 29 01:55:22 UTC 2006
Ok, replying to myself, Avi, what do you think of this.. I found
WARenderingContext>>urlForDocument: anObject mimeType: mimeType fileName: fileName
^ (self registry urlForRequestHandler:
(WADocumentHandler
document: anObject
mimeType: mimeType
fileName: fileName)) displayString
and changed it to...
WARenderingContext>>urlForDocument: anObject mimeType: mimeType fileName: fileName
| uri |
uri := (self registry urlForRequestHandler: (WADocumentHandler
document: anObject
mimeType: mimeType
fileName: fileName)) .
self useSSL ifTrue: [uri scheme: #https; port: 443].
^uri displayString
WARenderingContext>>useSSL
^request headers includesKey: 'via'
This seems to fix all the css and javascript includes. If that's an ok change, I'll commit it to the repository, but I'm unfamiliar with this area and don't want to change anything without someone who knows it better OK'ing it.
________________________________
From: seaside-bounces at lists.squeakfoundation.org on behalf of Ramon Leon
Sent: Fri 4/28/2006 6:25 PM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: RE: [Seaside] SSL
Hmm, that part works great, but css scripts are still imported via http resulting in warnings about unsecure elements. I'll dig around see if I can find where to fix those, but if you're around, do tell.
________________________________
From: seaside-bounces at lists.squeakfoundation.org on behalf of Avi Bryant
Sent: Fri 4/28/2006 11:04 AM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] SSL
On Apr 28, 2006, at 10:56 AM, Ramon Leon wrote:
>
> Thanks, but can you share the code, or am I in for another night of
> hacking trying to figure out how to modify seasides generated url
> root?
These are from my WASession subclass:
actionUrlForKey: aString
| url |
url := super actionUrlForKey: aString.
self useSSL ifTrue: [url scheme: #https; port: 443].
^ url
useSSL
^ (currentRequest headers includesKey: 'via')
Avi
_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6046 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20060428/70cbd828/attachment-0001.bin
More information about the Seaside
mailing list