views:

42

answers:

2

Hey all,

i have java classes that i call from my html file using this ajax code.

 $.ajax({
        type: "POST",
        url:"http://www.verifiedalerts.appspot.com/verifiedalert?action=addIntrusionRules",
        dataType:"text",
        async:false,
        data:   "params=" + objStr,
        success: function(data){
                          //alert(data);
            }
        });

when i get i see the log i get this error.

Uncaught exception from servlet java.security.AccessControlException: access denied

but when i run another similar file from a different computer it works somehow and now it is not working.

does someone know how to get passed this?

A: 

I think it has to do with same origin policy:

The same origin policy prevents a document or script loaded from one origin from getting or setting properties of a document from another origin. This policy dates all the way back to Netscape Navigator 2.0.

You might find these threads useful to workaround that:

Sarfraz
+1  A: 

The error is occurring on the server, so we really need to see the App Engine code and the complete stacktrace of the exception to tell you anything useful. One thing that's immediately noticeable is that you're referring to "www.verifiedalerts.appspot.com" when you should probably be referring to "verifiedalerts.appspot.com" - the former may or may not work depending on your configuration.

Nick Johnson