JKreitzberg (Customer) asked a question.

BRX Simulator-Custom Web Page Development

Error Code From Chrome:1 Access to XMLHttpRequest at 'http://192.168.1.15/data/json?AnalogIn=WX0,8%20&ScaleAnalogIn from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

 

I am trying to develop a custom web page and receive this error from the chrome browser. The HTML program will run when located in the simulator but I get this error when running from Chrome on the same computer as the simulator.

The Simulator Ethernet Port is 192.168.1.15, Web Server Enabled with default port of 80 and have tried with Server Whitelist Enabled and not.

Appreciate Any Ideas?

Jeff

 

 


  • JKreitzberg (Customer)

    1. Removed Norton & turned off Windows 10 firewall, still received "Access-Control-Allow-Origin: Error"
    2. Tried Firefox & Edge, same"Access-Control-Allow-Origin: Error"
    3. Loaded App: "Moesif Origins & Cors changer" This worked allowing my web page to access BRX simulator data. This is a viable solution for me since I only need the App on during web page development. Once the web page is loaded into the simulators up directory there has never been a Access-Control-Allow-Origin Error.

    Thanks,

    Jeff

    Expand Post
    Selected as Best
  • ADC Community_02 (Automationdirect.com)

    1.) Have you tried turning off the firewall on his pc to see if it works? 

    2.) Have you tried another browser like Edge, Firefox or Safari?

  • JKreitzberg (Customer)

    1. Removed Norton & turned off Windows 10 firewall, still received "Access-Control-Allow-Origin: Error"
    2. Tried Firefox & Edge, same"Access-Control-Allow-Origin: Error"
    3. Loaded App: "Moesif Origins & Cors changer" This worked allowing my web page to access BRX simulator data. This is a viable solution for me since I only need the App on during web page development. Once the web page is loaded into the simulators up directory there has never been a Access-Control-Allow-Origin Error.

    Thanks,

    Jeff

    Expand Post
    Selected as Best