News:

  • June 28, 2026, 08:19:51 AM

Login with username, password and session length

Author Topic: Remote Dynamic Web Page CORS error  (Read 27675 times)

Jeff

  • Newbie
  • *
  • Posts: 7
Re: Remote Dynamic Web Page CORS error
« Reply #15 on: May 07, 2024, 07:46:31 PM »
Greg,
I set up an apache2 web server on Raspberry Pi.  Apache2 has line items in their configuration file to work around CORS errors.  For some reason this did not work for me in having a web page access data from the Simulator or BRX.

I set up a Proxy Server on the Raspberry Pi (Privoxy).  It also has lines to add to the configuration file to work around cross domain errors.  This did not work for me with ether the Simulator or BRX hardware.
If I use the Chrome extension moesif my web page is always populated with data.

I appreciate your willingness to add this issue to the white pages in Do-More system configuration.  I am out of ideas for a work around.
Thank you for your efforts.

The BRX & Do-More make for an incredible monitoring system.
Between the ability to E-mail and have a dynamic web page showing all parameters in close to real time amazes me and my customers.
Jeff

Jeff

  • Newbie
  • *
  • Posts: 7
Re: Remote Dynamic Web Page CORS error
« Reply #16 on: August 21, 2024, 12:30:38 PM »
Greg,
Thank you for adding HTTPHeaders to your 2.10.1 firm ware update.
My required STRPRINT to HTTPHeaders is as follows:

"Access-Control-Allow-Origin: * "
"$R"
"Access-Control-Allow-Methods: Get"

This worked with: Chrome, Edge & Safari (Not FireFox)
I am very appreciative of your adding this feature. 
The BRX PLC is a fantastic monitoring device.  I expect this area of use to increase.
I am now using  Edge's Co-Pilot to review all my HTML & JavaScript code.
I suspect this will make it easier to make custom Dynamic Web Pages.

Thank you for your excellent support and product.
Jeff

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Remote Dynamic Web Page CORS error
« Reply #17 on: August 21, 2024, 12:44:38 PM »
ADC is always looking for customers to write interesting application articles.  Not elaborate, but just highlighting the possibilities of their products.

If you think others can learn from your application, ADC would love to hear from you (they offer in store credit!).
https://library.automationdirect.com/application-stories/

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Remote Dynamic Web Page CORS error
« Reply #18 on: August 21, 2024, 12:45:44 PM »
Hey Jeff, well I'd love to take the credit, but I merely informed one of the Do-more firmware engineers (BobO) of your need, and he reviewed it, thought it would be relatively painless to add, and promptly added it! But... you're welcome! And thanks for the kudos.  :)
There are two types of people in the world; those that can extrapolate from incomplete data sets.