Solved

JSP,Tomcat,WCF,IIS

Posted on 2011-09-28
1
797 Views
Last Modified: 2012-08-14
We have a Java application running on Tomcat server. I have a jQuery function on one jsp which calls a WCF service hosted on IIS 6.0. I get  the following message.

"This page is accessing information that is not under its control. This poses a security risk. Do you want to continue"

If I say No, I am getting javascript error "Access denied" to the jQuery1.4.4.min.js

What could be the problem?
0
Comment
Question by:dotnetkb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
strickdd earned 500 total points
ID: 36717827
This is a built-in security measure that Javascript has. Only calls to websites on your domain are allowed by default. This prevents a LOT of phishing attacks and cross-site scripting attacks.

If you create a java web service that you post to and have that call the service on IIS, it will work fine. This ensures that the code executed via javascript resides on the same server that the page was served from - implying a level of trust.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
What You Need to Know when Searching for a Webhost Provider

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question