Attempt post instead of get for endpoint (#151374)

This commit is contained in:
Logan Ramos 2022-06-06 21:09:24 -04:00 committed by GitHub
parent 41317f9ca5
commit 711c34bdb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ class WebAppInsightsAppender implements ITelemetryAppender {
// If we cannot access the endpoint this most likely means it's being blocked
// and we should not attempt to send any telemetry.
fetch(endpointUrl).catch(() => (this._aiClient = undefined));
fetch(endpointUrl, { method: 'POST' }).catch(() => (this._aiClient = undefined));
}).catch(err => {
console.error(err);
});