Azure / pcs-remote-monitoring-webui

Azure IoT PCS Remote Monitoring Web UI
MIT License
54 stars 72 forks source link

getting cross-origin issues when running web ui locally. #1246

Closed sadeep25 closed 5 years ago

sadeep25 commented 5 years ago

Type of issue

Description

I'm trying to Prepare a local development environment for customize UI according to the article on https://docs.microsoft.com/en-gb/azure/iot-accelerators/iot-accelerators-remote-monitoring-customize . I have completed all the steps but when i run web ui locally i'm getting cross origin issues.

Steps to reproduce

1.Prepare a local development environment for the UI according to the article https://docs.microsoft.com/en-gb/azure/iot-accelerators/iot-accelerators-remote-monitoring-customize

Expected behavior

...

Current behavior <!-- The actual behavior observed --

...

Known workarounds

...

Possible solution

...

Context and Environment

Screenshot

Annotation 2019-06-17 144035 Annotation 2019-06-17 144129

elvinm commented 5 years ago

This is likely a similar issue that is currently being fixed. https://github.com/Azure/pcs-cli/pull/513

If you want to try out the fix you basically need to edit your /app/auth.sh script that is in your VM to be the same as what you see in that pull request.

Essentially the issue was that some parameters that need to be edited to allow local development when using --unsafe flag were not being set.

sadeep25 commented 5 years ago

Thank you so much Elvin Morales it worked.