Hi kip-dk,
first of all, thank you for your guide regarding Angular projects in Dynamics 365. I've experimented with this myself before reading your guide, and came to similar conclusions regarding the build processes for Angular applications in Dynamics.
I am opening this issue to let you know that I found a way to test locally the application in localhost:4200 with a working connection to Dynamics 365 (online), which was the main hurdle in having a full working environment for testing quickly Angular applications.
To achieve this I am using two Chrome Extensions:
- **Allow-Control-Allow-Origin: * ** -- this extension allows me to bypass CORS and send requests from localhost to the Dynamics instance
- Requestly -- this extensions allows to set custom headers for requests to defined domains. In this extension I manually set the "Cookie" header that I can retrieve with Chrome Developer Tools while browsing Dynamics 365 while authenticated.
This approach is not perfect, but the cookie will last for a few hours, allowing me to test and debug the application for a whole working day.
Hi kip-dk,
first of all, thank you for your guide regarding Angular projects in Dynamics 365. I've experimented with this myself before reading your guide, and came to similar conclusions regarding the build processes for Angular applications in Dynamics.
I am opening this issue to let you know that I found a way to test locally the application in localhost:4200 with a working connection to Dynamics 365 (online), which was the main hurdle in having a full working environment for testing quickly Angular applications.
To achieve this I am using two Chrome Extensions:
This approach is not perfect, but the cookie will last for a few hours, allowing me to test and debug the application for a whole working day.