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
  • 47,985
  • 13
  • 70
  • 91

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
  • 5,600
  • 5
  • 36
  • 48