Prevent (Restrict) passing parameter in URL of window.Open in AngularJS

on May 08, 2020 10:13 AM

I have an AngularJS application in which  am trying to open a purchase order pdf file in new window by passing id of selected order.For eg.


If user changes &po value to '12345', a complete different order might be displayed which might not be in current user list

I want to prevent user from manipulating value of &po in the browser which may open a order not belonging to user. 


Any help with demo will be greatly appreciated.

Download FREE API for Word, Excel and PDF in ASP.Net: Download
on May 08, 2020 10:15 AM

Hi vidhya16,

You need to pass it as hardcoded or handled from api to ignore passing the &po.