Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OriginNotAllowedException - JavaScript and Java code from different origins

2 views
Skip to first unread message

John Bossert

unread,
Aug 26, 2001, 1:47:52 PM8/26/01
to
NS 6.1 (Mozilla 0.9.2)
Win2K Pro

I'm getting the following error message:

sun.plugin.liveconnect.OriginNotAllowedException: JavaScript is not from
the same origin as the Java code, caller=http://www.transparent.com,
callee=http://207.228.216.151:8080/wotd/shared/

at
sun.plugin.liveconnect.SecureInvocation.checkLiveConnectCaller(Unknown
Source)
at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)

Per the Configurable Security Document, I believe I need to add
(something like) the following to my user.js file:

// Allow JavaScript to have a different origin than the Java code
// user_pref("capability.policy.trustcode.sites",
"http://www.transparent.com");
// user_pref("capability.policy.trustcode.<class name>.<property name>",
"allAccess");

Can someone tell me the <class name> and <property name> for this?
Additionally, for future reference, how/where can I determine this kind
of information myself? Thanks.

--
John Bossert
jbos...@usa.net

"To attain happiness in another world we need only to believe
something; to secure it in this world, we must do something."
--Charlotte Perkins Gilman

Kate Wintjen

unread,
Aug 30, 2001, 2:20:01 PM8/30/01
to

I don't know, but if you don't get an answer here try one or both of these two
groups:
snews://secnews.netscape.com/netscape.devs-java
snews://secnews.netscape.com/netscape.devs-javascript

Someone in one of these may know the answer.

--
************************************************************
E-mail provided is a legit email address that is permanently
"on vacation". Any e-mail sent to it is assumed to be SPAM.

I will post my real email address in a message on request.
(in form username AT server DOT com/net of course).
************************************************************

0 new messages