Monks:

I've been graced with an XMLRPC server running on an old machine. It's so old, I can't upgrade anything, but, nevertheless, the server still runs and accepts connections.

What has changed is that we've now got a web developer who's attempting to make these XML-RPC requests using JS, and for the first time, are coming up against CORB. So I spent a considerable amount of time trying to see if I can figure out how I can insert a CORS "Access-Control-Allow-Origin => *" key-value pair in the response header of the XMLRPC server.

It's being used in the most minimal sense, as in:

my $daemon = XMLRPC::Transport::HTTP::Daemon -> new (LocalPort => 8081, Reuse => 1) -> dispatch_to('module');

I've been reading through all of the documentation, up to the SOAP::Lite superclass, and trying to find an example, but I can't find one. What can I do?


In reply to CORS header in XMLRPC::Transport::HTTP::Daemon by seaver

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.