{"id":68353,"date":"2021-08-01T10:44:30","date_gmt":"2021-08-01T14:44:30","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/securing-your-angularjs-applications-angularjs-by-sayed-ahmed\/"},"modified":"2021-08-01T10:44:30","modified_gmt":"2021-08-01T14:44:30","slug":"securing-your-angularjs-applications-angularjs-by-sayed-ahmed","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=68353","title":{"rendered":"Securing Your AngularJS Applications #AngularJS #By Sayed Ahmed"},"content":{"rendered":"<p><strong>Securing Your AngularJS Applications<\/strong><br \/>\nSome security measures can be as follows:<br \/>\nTake security measures at the entry and exit points of data to and from the server<br \/>\nSecure the server and prevent unauthorized access to data, and HTML<br \/>\nEncrypt the connection i.e https:\/\/<br \/>\nPrevent cross-site scripting (XSS),<br \/>\nPrevent cross-site request forgery (XSRF) attacks<br \/>\nBlock JSON injections<\/p>\n<p><strong>AngularJS Templates Securing:<\/strong><br \/>\n$templateCache caches templates. If you want to use this, you need to remove the cache for each user login<\/p>\n<p><strong>The following or similar stuff can help<\/strong><br \/>\nCache-Control: no-cache, no-store, must-revalidate<br \/>\nPragma : no-cache<br \/>\nExpires : 0<\/p>\n<p>using https can address the snooping and man in the middle attack<\/p>\n<p><strong>You need to prevent JSON Injection Vulnerability<\/strong><br \/>\nto do this, you can add )]}&#8217;, before your JSON, though not valid JSON but helps to prevent JSON injection vulnerability.<\/p>\n<p><strong>Prevent XSS attack in the client side<\/strong><br \/>\nAngularJS escapes all HTML in text that is displayed through the ng-bind directive, or template interpolation (that is text in {{curly braces}}). From: http:\/\/sitestree.com\/?p=846<br \/> Categories:AngularJS, By Sayed Ahmed<br \/>Tags:<br \/> Post Data:2014-02-15 23:59:48<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Securing Your AngularJS Applications Some security measures can be as follows: Take security measures at the entry and exit points of data to and from the server Secure the server and prevent unauthorized access to data, and HTML Encrypt the connection i.e https:\/\/ Prevent cross-site scripting (XSS), Prevent cross-site request forgery (XSRF) attacks Block JSON &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=68353\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-68353","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":7442,"url":"http:\/\/bangla.sitestree.com\/?p=7442","url_meta":{"origin":68353,"position":0},"title":"AngularJS Templates \u098f\u09b0 \u09a8\u09bf\u09b0\u09be\u09aa\u09a4\u09cd\u09a4\u09be\u0964","author":"Author-Check- Article-or-Video","date":"March 23, 2015","format":false,"excerpt":"URL of translated tutorial http:\/\/sitestree.com\/securing-your-angularjs-applications\/ Paste written translation here AngularJS Templates \u098f\u09b0 \u09a8\u09bf\u09b0\u09be\u09aa\u09a4\u09cd\u09a4\u09be\u0964 Md. Shahinoor Islam \u09af\u09a6\u09bf \u0986\u09aa\u09a8\u09bf \u099a\u09be\u09a8 \u09a4\u09ac\u09c7 \u0986\u09aa\u09a8\u09bf \u098f\u099f\u09be ($templateCache caches templates) \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7\u09a8\u0964 \u09aa\u09cd\u09b0\u09a4\u09cd\u09af\u09c7\u0995 user \u0995\u09c7 login \u0995\u09b0\u09be\u09b0 \u09b8\u09ae\u09df cache \u099f\u09be remove \u0995\u09b0\u09a4\u09c7 \u09b9\u09ac\u09c7\u0964 \u09a8\u09bf\u099a\u09c7\u09b0 \u0989\u09a6\u09be\u09b9\u09b0\u09a8\u099f\u09bf \u0986\u09aa\u09a8\u09be\u0995\u09c7 \u09b8\u09be\u09b9\u09be\u09af\u09cd\u09af \u0995\u09b0\u09ac\u09c7, Cache-Control: no-cache, no-store, must-revalidate Pragma :\u2026","rel":"","context":"In &quot;AngularJS - 001&quot;","block_context":{"text":"AngularJS - 001","link":"http:\/\/bangla.sitestree.com\/?cat=154"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23381,"url":"http:\/\/bangla.sitestree.com\/?p=23381","url_meta":{"origin":68353,"position":1},"title":"AngularJS + REST Made Simple: Connecting AngularJS to a Backend with REST &amp; JSON #Root #AngularJS Course &#8211; 002","author":"Author-Check- Article-or-Video","date":"March 30, 2021","format":false,"excerpt":"From: http:\/\/sitestree.com\/?p=2535 Categories:Root, AngularJS Course - 002Tags:AngularJS, JSON Post Data:2015-10-10 10:10:30 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium: https:\/\/medium.com\/@SayedAhmedCanada","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5866,"url":"http:\/\/bangla.sitestree.com\/?p=5866","url_meta":{"origin":68353,"position":2},"title":"\u0985\u0999\u09cd\u0997\u09c1\u09b2\u09be\u09b0 \u099c\u09c7\u098f\u09b8 \u098f\u0987\u099a\u099f\u09bf\u099f\u09bf\u09aa\u09bf \u09b0\u09bf\u0995\u09c1\u09df\u09c7\u09b8\u09cd\u099f AngularJS XMLHttpRequest . AngularJS XMLHttpRequest","author":"Author-Check- Article-or-Video","date":"January 30, 2015","format":false,"excerpt":"\u0985\u0999\u09cd\u0997\u09c1\u09b2\u09be\u09b0 \u099c\u09c7\u098f\u09b8 \u098f\u0987\u099a\u099f\u09bf\u099f\u09bf\u09aa\u09bf \u09b0\u09bf\u0995\u09c1\u09df\u09c7\u09b8\u09cd\u099f AngularJS XMLHttpRequest \u09ae\u09cb: \u0986\u09b8\u09be\u09a6\u09c1\u099c\u09cd\u099c\u09be\u09ae\u09be\u09a8 (Md. Asaduzzaman) \u09ab\u09cd\u09b0\u09bf\u09b2\u09cd\u09af\u09be\u09a8\u09cd\u09b8\u09be\u09b0 (\u0993\u09df\u09c7\u09ac \u09a1\u09bf\u099c\u09be\u0987\u09a8\u09be\u09b0 \u098f\u09ac\u0982 \u09a1\u09c7\u09ad\u09c7\u09b2\u09aa\u09be\u09b0) $http \u09b0\u09bf\u09ae\u09cb\u099f \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u09a5\u09c7\u0995\u09c7 \u09a4\u09a5\u09cd\u09af \u09aa\u09a1\u09bc\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u098f\u0995\u099f\u09bf AngularJS \u09b8\u09be\u09b0\u09cd\u09ad\u09bf\u09b8\u0964 \u098f\u0995\u099f\u09bf JSON \u09ab\u09be\u0987\u09b2 \u09aa\u09a1\u09bc\u09be (Reading a JSON File) \u09a8\u09bf\u09ae\u09cd\u09a8\u09b2\u09bf\u0996\u09bf\u09a4 \u09b8\u09cd\u099f\u09cd\u09af\u09be\u099f\u09bf\u0995 JSON \u09ab\u09be\u0987\u09b2 \u098f\u0995\u099f\u09bf \u0993\u09af\u09bc\u09c7\u09ac \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0\u09c7 \u09b8\u0982\u09b0\u0995\u09cd\u09b7\u09a3 \u0995\u09b0\u09be \u09b9\u09af\u09bc: http:\/\/www.justetc.com\/website\/Customers_JSON.php [ { \"Name\" : \"Alfreds Futterkiste\",\u2026","rel":"","context":"In &quot;AngularJS - 001&quot;","block_context":{"text":"AngularJS - 001","link":"http:\/\/bangla.sitestree.com\/?cat=154"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23709,"url":"http:\/\/bangla.sitestree.com\/?p=23709","url_meta":{"origin":68353,"position":3},"title":"Realtime Web Apps with AngularJS and Firebase #Root","author":"Author-Check- Article-or-Video","date":"April 2, 2021","format":false,"excerpt":"Angular is great at 2-way data bindings between the DOM and models in memory. What if you'd also like to persist your models on a server? Join us to hear guest speaker Anant Narayanan (@anantn) of Firebase discuss how their integration with Angular makes it a breeze to synchronize data\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7436,"url":"http:\/\/bangla.sitestree.com\/?p=7436","url_meta":{"origin":68353,"position":4},"title":"Angular \u09b8\u09cd\u09a5\u09be\u09a8\u09c0\u09af\u09bc\u0995\u09b0\u09a3 (Localization) \u09b8\u09ae\u09b0\u09cd\u09a5\u09a8: AngularJS \u0986\u09a8\u09cd\u09a4\u09b0\u09cd\u099c\u09be\u09a4\u09bf\u0995 \u0985\u09cd\u09af\u09be\u09aa\u09cd\u09b2\u09bf\u0995\u09c7\u09b6\u09a8\u09c7\u09b0 \u09b2\u09c7\u0996\u09be\u0964 Localization Support in Angular : Writing International Applications in AngularJS","author":"Author-Check- Article-or-Video","date":"March 23, 2015","format":false,"excerpt":"URL of translated tutorial http:\/\/sitestree.com\/841\/ Paste written translation here Angular \u09b8\u09cd\u09a5\u09be\u09a8\u09c0\u09af\u09bc\u0995\u09b0\u09a3 \u09b8\u09ae\u09b0\u09cd\u09a5\u09a8: AngularJS \u0986\u09a8\u09cd\u09a4\u09b0\u09cd\u099c\u09be\u09a4\u09bf\u0995 \u0985\u09cd\u09af\u09be\u09aa\u09cd\u09b2\u09bf\u0995\u09c7\u09b6\u09a8\u09c7\u09b0 \u09b2\u09c7\u0996\u09be\u0964 Md. Shahinoor IslamAngular \u09b8\u09cd\u09a5\u09be\u09a8\u09c0\u09af\u09bc\u0995\u09b0\u09a3 \u09b8\u09ae\u09b0\u09cd\u09a5\u09a8: AngularJS \u0986\u09a8\u09cd\u09a4\u09b0\u09cd\u099c\u09be\u09a4\u09bf\u0995 \u0985\u09cd\u09af\u09be\u09aa\u09cd\u09b2\u09bf\u0995\u09c7\u09b6\u09a8\u09c7\u09b0 \u09b2\u09c7\u0996\u09be\u0964 AngularJS \u09b2\u09be\u0987\u09ac\u09cd\u09b0\u09c7\u09b0\u09bf \u0985\u09a7\u09c0\u09a8\u09c7 en-US \u09b2\u09cb\u0995\u09c7\u09b2 \u09b8\u09ae\u09cd\u09aa\u09b0\u09cd\u0995\u09bf\u09a4 \u09a4\u09a5\u09cd\u09af \u09b0\u09be\u0996\u09be \u09b9\u09af\u09bc \u09af\u09c7\u0996\u09be\u09a8\u09c7 \u098f\u0995\u099f\u09bf \u09ab\u09cb\u09b2\u09cd\u09a1\u09be\u09b0 i18n \u0986\u099b\u09c7\u0964 \u0986\u09aa\u09a8\u09bf \u098f\u0995\u099f\u09bf \u09ad\u09bf\u09a8\u09cd\u09a8 \u09b2\u09cb\u0995\u09c7\u09b2 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09a4\u09c7 \u099a\u09be\u09a8 \u09a4\u09be\u09b9\u09b2\u09c7 \u09a8\u09bf\u09ae\u09cd\u09a8\u09b0\u09c2\u09aa \u0986\u09aa\u09a8\u09bf \u098f\u099f\u09bf\u2026","rel":"","context":"In &quot;AngularJS - 001&quot;","block_context":{"text":"AngularJS - 001","link":"http:\/\/bangla.sitestree.com\/?cat=154"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":68349,"url":"http:\/\/bangla.sitestree.com\/?p=68349","url_meta":{"origin":68353,"position":5},"title":"Optimizing AngularJS Page Loading #AngularJS #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"August 1, 2021","format":false,"excerpt":"Optimizing AngularJS Page Loading: Optimizing web-applications for faster performance often include reducing network activities, reducing send and receive requests over the network\/internet, and reducing data downloads. Minification of JavaScript, CSS, and HTML files can help with that. AngularJS kind of forces to write minification safe JavaScript, and writing array style\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/68353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=68353"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/68353\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=68353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=68353"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=68353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}