When utilizing the <base>
tag in HTML along with the <style>
tag on Microsoft's Edge Browser, I encounter a peculiar issue. Here is a very basic example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Edge dev tools base tag 403 reproducer</title>
<base href="http://netdata.ch/dt/pp/"/>
<style type="text/css">
</style>
</head>
<body>
Hello!
</body>
</html>
Upon using the developer tools, this page triggers errors in the console and networking tabs:
https://i.sstatic.net/bdiI7.png
https://i.sstatic.net/WixF6.png
Calling directly does result in a 403 error. However, only Edge seems to make this call when using developer tools. Other browsers do not exhibit this behavior. The server access logs do not show a 403 unless developer tools are accessed.
Interestingly, removing the <style>
tag eliminates these errors:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Edge dev tools base tag 403 reproducer</title>
<base href="http://netdata.ch/dt/pp/"/>
</head>
<body>
Hello!
</body>
</html>
This behavior has been observed in:
Microsoft Edge 20.10240.16384.0
Microsoft Edge 38.14393.0.0
Any insights into why this occurs specifically with Edge developer tools?