« Previous Next »

Thread: Load data from different domain

Last post 07-23-2008 4:39 AM by poizn. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 07-21-2008, 5:07 AM

    • poizn
    • Not Ranked
    • Joined on 07-21-2008, 9:03 AM
    • Posts 2

    Load data from different domain

    Hi all.

    This is my first post here, and I am a noob to IIS, so it should be a fairly simple question.

    I have a script and I need to access a web service from another domain, but I wont let me.

    This is the error message I get in the firefox error console

    Security Error: Content at http://localhost:81/soap/demo.htm may not load data from http://www.email.loc/servers/template.soap_server.php?wsdl.

    I gather from the error message that you can't access data from another domain... Is that correct?

    If so how can I set up IIS to allow me to access data from another domain?

     Thanks in advance :)

  • 07-21-2008, 8:30 AM In reply to

    Re: Load data from different domain

    This isn't an IIS issue, it's a security error.  You need to use an account that can access the web service.  Since this is a HTML static file, you're using the IUSR account most likely, and that's a local account.  You need to use an account that has access in the other domain, either through a domain account and trusts or using a local account on the other server.  It might be as simple as creating identical accounts on both servers, then using that account as the anonymous user account, but there's no easy way to tell.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 07-21-2008, 9:28 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 6:27 AM
    • Central NJ
    • Posts 6,163
    • IIS MVPs

    Re: Load data from different domain

    ... actually, isn't this a client-side issue with Firefox not allowing the page to get data from a different domain?  Kind of like a cross site scripting issue?  In that case it has nothing to do with IIS and you'd get a better answer in a browser/scripting forum ...

  • 07-23-2008, 4:39 AM In reply to

    • poizn
    • Not Ranked
    • Joined on 07-21-2008, 9:03 AM
    • Posts 2

    Re: Load data from different domain

    jeff@zina.com:

    This isn't an IIS issue, it's a security error.  You need to use an account that can access the web service.  Since this is a HTML static file, you're using the IUSR account most likely, and that's a local account.  You need to use an account that has access in the other domain, either through a domain account and trusts or using a local account on the other server.  It might be as simple as creating identical accounts on both servers, then using that account as the anonymous user account, but there's no easy way to tell.

    Jeff



    Hey cool thanks for the reply.

    How do I go about creating an account that can access the other domain?

    And then how do I use that account to access the domain?

Page 1 of 1 (4 items)
Microsoft Communities