It is not possible due Cross Origin Request. Using the loader that way 
causes a HTTP Post being made and is not possible between two different 
domains except the domain requested via AJAX adds a header allowing the 
current domain. Or else, you get one of these:

XMLHttpRequest cannot load 
https://caja.appspot.com/cajole?url=url&build-version=4836&directive=ES53&emit-html-in-js=true&renderer=pretty&input-mime-type=text%2Fhtml&alt=json.
 
Origin null is not allowed by Access-Control-Allow-Origin.

Replicating the request using cURL causes a 500 on the caja server.

On Saturday, May 5, 2012 2:43:22 AM UTC+1, Artur Ventura wrote:
>
> I think that I only need to detect <script> with a src property and inline 
> them, and detect <style> with a @import statement and recursively inline 
> them (the same for <link>  with rel property with a value of stylesheet). 
> That doesn't sound too much hard, 3 or 4 regexps and I can make it work. 
>
> On Saturday, May 5, 2012 1:55:54 AM UTC+1, ihab wrote:
>>
>>
>> On Fri, May 4, 2012 at 5:54 PM, Artur Ventura <[email protected]>wrote:
>>
>>> If that works, than I need to parse the 'content' for other files (CSS & 
>>> JavaScript) and somehow inline them.
>>
>>
>> Where the initial content contains links to other stuff, which is itself 
>> protected by your firewall, then yes, I'm afraid. :(
>>
>> Ihab
>>
>> -- 
>> Ihab A.B. Awad, Palo Alto, CA
>>
>

Reply via email to