Cross domain problems with my WEB UI remote Control

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
sulhee
New Cone
New Cone
Posts: 1
Joined: 31 Mar 2016 18:29

Cross domain problems with my WEB UI remote Control

Postby sulhee » 31 Mar 2016 18:42

Hello , I would like to create my own web interface to control VLC remotely via a web UI in javascript but when I send an XML HTTP request , I get this error:

" Response to preflight request Does not pass access control check: No ' Access -control - Allow- Origin . ' header is present on the requested resource Origin ' http: // localhost: . 8383 ' The Therefore is not allowed access HAD The response HTTP status code 501. "

Obviously there is a cross domain request problem, but I do not know how to deal with it with VLC.

I added this to my code but no results:


xhttp.open("GET", "http://localhost:8080/requests/status.xml?", true);
xhttp.setRequestHeader ("Authorization", "Basic " + btoa( ":" + "test"));
xhttp.setRequestHeader("Access-Control-Allow-Origin", "*");

xhttp is equals to an instance of XMLHttpRequest.

Can anyone help me?

Thank you

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 23 guests