Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How do you block specific resources from being request from external URLs?

$
0
0

I've been working with the Google Maps JS API in Blazor Server .NET 9, and while trying to debug some issues in my browser's console, I noticed that there is a warning for "Tracking Prevention blocked access to storage for " that repeatedly gets raised in short succession.

The URL in question is to this image, a 1x1px transparent PNG. I tried looking around on the Internet for any information regarding this, but everything that comes up is related on search terms only. Even AI Overview goes off in a completely different direction.

Screenshot of repeated raising of warnings

So, if anyone has more information about this (other than "it's a tracking pixel"), such as why it would be buried inside the API, if it has any practical use for API key security, etc., that would be appreciated. But for the main point of my post, is there a way to block a given URL from being fetched from inside my codebase?

I may need to reword the question to be more specific to this scenario.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>