Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

330
Views
on click of modal $uibmodal template url is not redirecting to the other website

I have been implementing a modal popup in my project and i need to open some external url link like a popup in my angular JS project. For that i have been trying to implement the uibmodal of angular JS and facing with the below issue.

Error code: Blocked loading resource from url not allowed by $sceDelegate policy.

Uncaught Exception: Uncaught Error: [$sce:insecurl] http://errors.angularjs.org/1.4.8/$sce/insecurl?p0=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2F%23inbox

$uibModal.open({
                                     templateUrl: 'https://mail.google.com/mail/u/0/#inbox',                                   
                                     keyboard: false, // ESC key close enable/disable
                                     resolve: {
                                         actualData: function () {
                                             return true;
                                         }
                                     } // data passed to the controller
                                 }).result.then(function (data) {
                                     //do logic
                                 }, function () {
                                     alert("page closed")
                                     // action on popup dismissal.
                                 });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!