Relative Content

Tag Archive for angularangularjsurlpipexss

Problem NG0904 unsafe value used in a resource URL context security xss

I’m new to Angular. I have this problem when trying to implement the href value of the Sitemap tag dynamically. This value contains the url of the xml which is stored in the database. The problem arises when transferring the data from the object to the view in angular resulting in the problem NG0904 unsafe value used in a resource URL context. I have implemented a DomSanitizer pipe but I can’t overcome the problem. I would like you to give me a hand with it.