Restrict access to Tomcat 9 manager

To prevent access to the Tomcat 9 Manager to all IPs except those authorized, it is necessary to configure the file context.xml of the manager application. The file should be found in the following path:…

Minify JavaScript with C# and .Maui APIs

using System; public class Program { public static void Main() { var request = (System.Net.HttpWebRequest) System.Net.WebRequest.Create(“https://api.dotmaui.com/client/1.0/jsmin/”); var postData = “apikey=YOUR_API_KEY”; postData += “&url=https://code.jquery.com/jquery-3.4.1.js”; postData += “&asciionly=false”; var data = System.Text.Encoding.ASCII.GetBytes(postData); request.Method = “POST”; request.ContentType =…

jQuery – Fall back to hosted library if cdn fail

Production applications should not be heavily dependent on CDN activities. Applications should use a fallback resource when the CDN is not available. <script src=”https://cdn.dotmaui.com/libs/jquery/3.4.0/jquery.min.js”></script> <script> window.jQuery || document.write(‘<script src=”/js/jquery.min.js”><\/script>’); </script>