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 6952381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:20:30+00:00 2026-05-27T14:20:30+00:00

How is it possible that when I try to make an XMLHTTPRequest from a

  • 0

How is it possible that when I try to make an XMLHTTPRequest from a javascript file to a web service located on the very same domain, I get:

Origin http://mydomain.com is not allowed by Access-Control-Allow-Origin ???

If I change mydomain.com to localhost, I no longer have problems, but I would like to keep it as mydomain.com

What do I have to edit, and why in the first place, since it’s the same domain?

  • 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-27T14:20:31+00:00Added an answer on May 27, 2026 at 2:20 pm

    1) look in your request/response headers. Is the server returning a weird access-control-allow-origin header?

    2) It’s not just the domain, it’s also the protocol (http vs https vs ftp etc), the port (if you have a :8080 or something like that), and potentially the part after the .com/

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

Sidebar

Related Questions

I will try to make myself as clear as possible. Let start from the
I try to use single quotes as much as possible and I've noticed that
Is it possible that Microsoft will be able to make F# programs, either at
Here is my web service that works perfectly fine in Fiddler and in my
Is it possible to make a plot in matlab that does not actually take
Okay, I'll try to make this as straight forward as possible. I'm using VB.Net
0K, here it the problem, I'll try to make it as clear as possible.
I'll try and make this question as brief as possible. I was wondering if
I always try to make my applications as RESTful as possible but I've recently
I'll try to make myself as clear as possible. I made an installation program

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.