1

When trying to access

app://csttree?featuretype=cst_issue&verticalid=2132321&l1=3213&l2=3242

in my app, it's parsing the url to ==>

unsafe:app://csttree?featuretype=cst_issue&verticalid=2132321&l1=3213&l2=3242

Is there a way to avoid unsafe at the beginning of the url?

georgeawg
  • 48,608
  • 13
  • 72
  • 95
Pawan Kumar Singh
  • 121
  • 1
  • 1
  • 3

1 Answers1

1

Not sure why you're calling app://..., but if you whitelist app that should do the trick:

var app = angular.module( 'myApp', [] )
.config( [
    '$compileProvider',
    function( $compileProvider )
    {   
        $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|app):/);
    }
]);
Kyle Krzeski
  • 6,183
  • 6
  • 41
  • 52