After running a security scan using Fortify, issues were highlighted in my application which uses an Angular front end with ASP.NET Core. One of the detected issues is related to the following line in the index.html file:
document.write('base href="'=+ document.location+'"/>');It seems that this line is causing some concerns about security. However, as far as I understand, in a single page application like Angular, this line serves as the base container for other components and scripts to load. Is this not how an Angular SPA is supposed to function? The scan also flagged multiple lines as vulnerabilities, such as and files like main.gh9787998886.bundle.js.
How should I go about addressing these issues? Could it be possible that they are false positives?