The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Email Subscription

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 717 other subscribers

Archive for August 26th, 2026

Some links on finding the redirection target of a URL from within a web-browser

Posted by jpluimers on 2026/08/26

Likely what I want is not possible because of CORS or CSP (both security features, often mixed up in writings), but just in case below are some links I found.

The problem at hand was that I wanted to use the functionality of a site like [Wayback/Archive] Redirect Checker | Check your Statuscode 301 vs 302, but on the client side because sometimes redirects depend on locality (for example, but not limited to, AliExpress sites).

Thinks like these fail with CSP errors like Refused to connect to 'https://t.co/Ui4Wmesq1j' because it violates the following Content Security Policy directive: "connect-src chrome://resources chrome://theme 'self'".:

var xhr = new XMLHttpRequest();
xhr.onload = function() {
  if (this.status < 400 && this.status >= 300) {
    console.log('request redirects to ' + this.getResponseHeader("Location"));
  } else {
    console.log('request does not redirect');
  }
}
xhr.open('HEAD', 'https://t.co/Ui4Wmesq1j', true);
xhr.send();

Links – many of them mentioning CORS, but few CSP:

Read the rest of this entry »

Posted in Communications Development, Development, HTTP, Internet protocol suite, Software Development, TCP, Web Development | Tagged: , , | Leave a Comment »

ceceradio/twitter-block-chain: Chrome extension to block all users on a followers/following page.

Posted by jpluimers on 2026/08/26

Cool: [Wayback/Archive] ceceradio/twitter-block-chain: Chrome extension to block all users on a followers/following page.

On the play store: [Wayback/Archive] Twitter Block Chain – Chrome Web Store

Via: [Wayback/Archive] Ӏօղցմìçհ on Twitter: “Weet iemand een goede tool om alle volgers van iemand in een klap te blocken ? En dan liefst een tool die niet 30 dollar per maand kost ..” / Twitter

It’s not just cool because of the functionality, but also because it is a relatively small extension from which I hopefully can learn a bit or two when starting to write my own extensions.

–jeroen

Posted in Chrome, CSS, Development, HTML, HTML5, JavaScript/ECMAScript, Scripting, Software Development, Web Browsers, Web Development | Leave a Comment »