question

Don-1240 avatar image
0 Votes"
Don-1240 asked ajkuma-MSFT commented

Azure web app: Failed to load resource: net::ERR_BLOCKED_BY_CLIENT on az416426.vo.msecnd.net/scripts/a/ai.0.js

Hi,

I am running into the below error when my Azure web app is loading various pages. This all worked fine before and started failing today and I have made no changes to my web app:

Failed to load resource: net::ERR_BLOCKED_BY_CLIENT on https://az416426.vo.msecnd.net/scripts/a/ai.0.js

Note I can access https://az416426.vo.msecnd.net/scripts/a/ai.0.js from my dev machine fine but when accessing my Azure web app url I see this failure in Chrome console.

Has something changed on the Azure side? I am using Application Insights with my web app and would like to keep using. How to fix this issue?

Thanks,

Don

azure-webappsazure-monitor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered ajkuma-MSFT commented

@Don-1240, Thanks for posting this question. Apologies you're experience this issue.

Kindy see if it’s due to JavaScript CDN block. Checkout the suggestions outlined in this doc –‘sections’ below:

‘The Application Insights JavaScript CDN has been blocked’
‘Application Insights JavaScript CDN is blocked (by end user - blocked by browser; installed blocker; personal firewall)’

As the snippet and its configuration are returned by your application as part of each generated page, you can change the snippet src configuration to use a different URL for the SDK. By using this approach, you could bypass the CDN blocked issue as the new URL should not be blocked, see if this helps.

Current Application Insights JavaScript SDK CDN endpoints

https://az416426.vo.msecnd.net/scripts/b/ai.2.min.js
https://js.monitor.azure.com/scripts/b/ai.2.min.js

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Don-1240, To better assist, just to clarify on the two statements, when your say 'I can access "URL" from my dev machine fine but when accessing my Azure web app url I see this failure in Chrome console", and " I am running into the below error when my Azure web app is loading various pages", does your Azure WebApp URL load fine (pages) on your dev machine and other machines? or does this issue happen via client browsers accessing your WebApp URL? Does it happen for all the users?

Sometimes, the Adblock or browser safety extensions installed on Chrome browser, shows such errors. You may disable such extensions and then test or check this on different machines.

I have added azure-monitor tags to receive insights from the respective SME/community.

Kindly let us know how it goes. We will follow-up on this further.

See, azure-monitor-status here.

0 Votes 0 ·