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

  • Home
  • SEARCH
  • 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 3451518
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:09:13+00:00 2026-05-18T09:09:13+00:00

I have an AJAX Enabled REST Web Service self hosted at http://localhost/machinename/ and a

  • 0

I have an AJAX Enabled REST Web Service self hosted at http://localhost/machinename/ and a test project running at http://localhost:59103/ hosted on a .NET Development Server. I’ve added my script reference to my test project and referenced the js ( http://localhost/machinename/js/ ) however, when the REST calls are invoked, it keeps trying to call http://localhost:59103/machinename/Method/, which doesn’t exist because that’s not where my service is hosted, and it’s not where I’m telling it my service exists.

My question is 2 fold:

  1. Why doesn’t it call out to the correct endpoint?
  2. Can I make it call out to the correct endpoint?
  • 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-05-18T09:09:13+00:00Added an answer on May 18, 2026 at 9:09 am

    I think this has to do with the JavaScript sandbox security model, where JS is only allowed to issue requests to the origin server from which the page (not the JS script!) was loaded. This seems to happen in your case: The host identifier is stripped out of the URI.

    This is a known issue, of course. You might want to look at JSONP as one possible way around this.

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

Sidebar

Related Questions

I have an Ajax.Net enabled ASP.Net 2.0 web site. Hosting for both the site
I have an AJAX-enabled WCF service and everything works fine with the ajax endpoint.
With ASP.NET MVC, it is common to have AJAX code(e.g. jQuery) to invoke web
I am running ASP.NET MVC Beta. I have an AJAX call running through jQuery
I have an Ajax-enabled CRUD application. If I display a record from my database
I have an AJAX-enabled SharePoint 2007 site. I have also created a user control
I have enabled SSL and I am doing a jQuery AJAX post request and
I have a web service that is willing to output gzip/deflated data. I've verified
Basically, I have an asp.net ajax enabled usercontrol, and now I'd like to just
Has anyone successfully used the AJAX-enabled ASP.NET Web Application wizard in Delphi 2007 to

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.