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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:53:59+00:00 2026-06-07T13:53:59+00:00

Scenario: I have a webpage that needs to make XMLRPC calls from Javascript, and

  • 0

Scenario: I have a webpage that needs to make XMLRPC calls from Javascript, and uses mimic.js to do so. The XMLRPC server is written in python, based on SimpleXMLRPCServer.

When the webpage and the server are on the same machine, all is well. If the page is coming from a different machine, I run into CORS issues. I’ve managed to get to the point where I know that the XMLRPC call is getting through to the server, yet the page is still complaining:

XMLHttpRequest cannot load http://server.machine.com:8888/. Origin http://page.machine.com is not allowed by Access-Control-Allow-Origin.
(mimic.js:8) NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests.

This is what I had to add to my subclass of SimpleXMLRPCRequestHandler in my server:

        def do_OPTIONS(myself):
            myself.send_response(200)
            myself.send_header("Access-Control-Allow-Origin", "*")
            myself.send_header("Access-Control-Allow-Headers","Content-Type")
            myself.end_headers()
            myself.wfile.write("OK") 

My understanding is that I shouldn’t need to change anything about making the XMLRPC call when the server is on a different machine (other than specify that new address).

So (finally!) the question: what piece of this puzzle am I missing? If the answer is as simple as “you need a different XMLRPC client library,” suggestions as to a replacement would be most welcomed.

  • 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-07T13:54:00+00:00Added an answer on June 7, 2026 at 1:54 pm

    Seems that the ACA-Origin & ACA-Headers headers needed to be added to the response from the POST request (the actual XMLRPC method call) as well.

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

Sidebar

Related Questions

Scenario: I have a console application that needs to access a network share with
I think this is a pretty common scenario: I have a webpage that's returning
I have made webpage that uses Ajax to update some values without reloading the
Scenario: I have a Javascript-generated web page that someone else wrote a long time
Scenario: You have an ASP.Net webpage that should display the next image in a
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
Scenario I have recently graduated from university with a degree in Computer Science. My
Scenario: We have a great deal of server environmental information (names, IPs, roles, firewall
Scenario :- I have to call MYSQL stored procedure from PHP and do some
The Scenario I have a table on a web page that is dynamically generated

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.