I am trying to use Pro Monitoring on my local dev server using ionic serve.
In the console I can see, that Pro was initialized without an error:
Ionic Pro initializing (app id: APP_ID)
However, when I try to call:
Pro.monitoring.log(message, { level: 'error' });
I receive the following error:
OPTIONS https://api.ionicjs.com/monitoring/APP_ID/exceptions 404 ()
Failed to load https://api.ionicjs.com/monitoring/APP_ID/exceptions: Response for preflight has invalid HTTP status code 404.
Unable to send exception to server: Object
I did link the app to the Pro backend.
Anything else that I might have missed?
I am also wondering, how the monitoring endpoint authenticates my request because otherwise anyone with the APP_ID could be sending messages to the endpoint?