Greg,
Thank you for your responses.
A. "BRX server does not send CORS headers": This helps I thought maybe I was missing something on BRX configuration.
B. If I type this URL into three different web browsers:
http://BRX-IP-Address/data/json?DValue=D1 I get the response: DValue: 123 (D1=123 in simulator)
C. My Web Page has the following:
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.overrideMimeType("application/json");
xmlhttp.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200)
{var myArr = JSON.parse(this.responseText);}
{
document.getElementById("MResHatch").innerHTML = " Main Res. Hatch:" + myArr.DValue;
}
};
function updatedata(){
xmlhttp.open("GET", "http:// BRX-IP-Address /data/json?DValue=D1",true);
xmlhttp.send();
setTimeout(updatedata, 1000);}
updatedata();
</script>
This triggers a CORS error on all three browsers.
D. I agree that a proxy server could be a work around.
E. I will E-mail you a two page document that I find well written on the CORS security protocol. My reading of it makes the BRX the server that controls access by only providing a correct CORS response to approved Web Pages.
Thank you for your support, hopefully ?Bolt? is like me and will wake up at 2AM remembering how he solved this problem.
Jeff