June-25th-2021, 09:06 AM
Dear Armin,
I am now trying to create an html file on a Windows 10 PC to set up the contents of Control panel.
When a function 'XMLHttpRequest' is called from the html file to communicate with netPI using POST & GET, the attached CORS error appears.
I couldn't solve the error by:
- A Chrome extension called Access Control-Allow-Origin -Unblock (https://chrome.google.com/webstore/detai...no/related) was installed not to be requests blocked
- The html file was executed on Node-RED on a Windows 10 PC
Do you have any solutions to execute REST API from an html file on a Windows 10 PC?
I want to do 'setup' & 'backup' all data to/from netPI's Control panel for mass-production.
By the way, as far as I investigated, I suppose the error was caused by server (netPI) side.
Because I think netPI doesn't include 'Access-Control-Allow-Origin:' in its header area.
If a next netPI firmware version adapts the above, that would be helpful for me.
Thank you very much for your advice.
Best regards,
I am now trying to create an html file on a Windows 10 PC to set up the contents of Control panel.
When a function 'XMLHttpRequest' is called from the html file to communicate with netPI using POST & GET, the attached CORS error appears.
I couldn't solve the error by:
- A Chrome extension called Access Control-Allow-Origin -Unblock (https://chrome.google.com/webstore/detai...no/related) was installed not to be requests blocked
- The html file was executed on Node-RED on a Windows 10 PC
Do you have any solutions to execute REST API from an html file on a Windows 10 PC?
I want to do 'setup' & 'backup' all data to/from netPI's Control panel for mass-production.
By the way, as far as I investigated, I suppose the error was caused by server (netPI) side.
Because I think netPI doesn't include 'Access-Control-Allow-Origin:' in its header area.
If a next netPI firmware version adapts the above, that would be helpful for me.
Thank you very much for your advice.
Best regards,