Self Hosting WCF inside WPF - Access-Control-Allow-Origin 405 error in Javascript request
<p>I tried to do upload files from html page to self hosting WCF inside WPF application in local network. </p>

<p>Host like this:</p>

<pre><code>        Uri baseAddress = new Uri("http://localhost:8200/GettingStarted/");
        ServiceHost selfHost = new ServiceHost(typeof(WCFUploader), baseAddress);
        try
        {
            selfHost.AddServiceEndpoint(typeof(IWCFUploader), new WSHttpBinding(), "GettingStarted");
            ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
            smb.HttpGetEnabled = true;
            selfHost.Description.Behaviors.Add(smb);
            selfHost.Open();
        }
        catch (CommunicationException ce)
        {
            Console.WriteLine("An exception occurred: {0}", ce.Message);
            selfHost.Abort();}
</code></pre>

<p>But, when I try to access <a href="http://localhost:8200/GettingStarted/" rel="nofollow">http://localhost:8200/GettingStarted/</a> by Javascript, I have an Access-Control-Allow-Origin 405 Http Error.</p>

<p>Anybody can help me?</p>