-
Notifications
You must be signed in to change notification settings - Fork 113
Documentation for hosting caja server #2030
Comments
Yes, the documentation never got written for how to do this properly and it's a bit of a mess overall. If the external scripts come from a CORS-enabled server, then you don't need any "Caja server" at all, just the JavaScript files:
Then in your configuration you specify the URI policy as [EDIT: previous values were misspelled]
If at all possible, I recommend this mode of operation. Otherwise, if you have a Java servlet environment you can load |
Thank you for your very quick reply, I have set up my local server with CORS enabled and have changed the URI policy, however I still receive the same error message.
|
For debugging, let's take this to https://groups.google.com/group/google-caja-discuss instead of the issue tracker. When you post, please include the script you're using to configure Caja and load the code. |
@kpreid Hmm this kind of information should go way higher up in the README.md , I spent hours trying to compile the code, and eventually found a docker image which runs very nicely - but I still can't figure out how to use the docker image which exposes an API ( If I
I've no idea where to start to find the documentation to even send it what it is that it's expecting to be sent. In my case, I wish to sanitise some HTML(from an email) that will get rendered in with some existing HTML |
Also related #1987 |
I am trying to make guest pages able to include external scripts, however this does not work using the "https://caja.appspot.com", however this does not allow external scripts. How can I run my own caja server, is there any documentation?
The text was updated successfully, but these errors were encountered: