Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8870549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:45:40+00:00 2026-06-14T17:45:40+00:00

We have 2 internal (intranet) Windows server on our network, only available to the

  • 0

We have 2 internal (intranet) Windows server on our network, only available to the local network. On server1 Spark is installed, where we can query Jabber information like so:

http://server1/plugins/presence/status?jid=username@jabbersrv&type=text

On server2 Spiceworks is installed, and I wrote a plugin to query that Jabber status like so:

xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", "http://server1/plugins/presence/status?jid=username@jabbersrv&type=text", false );
xmlHttp.send( null );
statusStr = xmlHttp.responseText;

But this code (on server2) is returning an error:

XMLHttpRequest cannot load http://server1/plugins/presence/status?jid=username@jabbersrv&type=text. Origin https://server2 is not allowed by Access-Control-Allow-Origin.

Why does this not work? I have some VB.net code that accomplishes this fine in the same environment:

Dim jbrStatus As New System.Net.WebClient
Dim userStatus As String = jbrStatus.DownloadString("http://server1/plugins/presence/status?jid=username@jabbersrv&type=text")

Neither are running Apache or the sort that I’m aware of, although Openfire is on server1. Should these 2 servers not inherently trust each other since they are internal (on the same domain)? What would be the best way of getting this working on a Windows domain & Windows servers?

I have tried adding server2 domain server as local admin on server1, but no luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:45:42+00:00Added an answer on June 14, 2026 at 5:45 pm

    It doesn’t matter whether they’re on the same network. If they have different domain names, XMLHttpRequests won’t work by default. You’ll need the server to send back certain headers, for Cross-Origin Resource Sharing. Note that this will only work on more recent browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 Oracle 10.2.0.4 servers, one located within our internal intranet network, and
We have a internal chat channel in our intranet. We keep on posting useful
We have an internal web server (intranet) and starting next week we will be
On our internal intranet, we have several embedded help files linked to from within
We have an in-house webapp running for internal use over the intranet for our
I have a local intranet application which runs off a basic WAMP server in
We've recently developed an internal web application for our intranet on top Microsoft's MVC
We have internal application used to publish articles, using SQL Server 2005. For the
Pretty straight forward... I have just setup a Windows Server 2008 r2 Virtual Machine
I have to retrieve internal ip addresses(10.X.X.X) from clients on a intranet. The intranet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.