Solved

JSP,Tomcat,WCF,IIS

Posted on 2011-09-28
1
787 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now