<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged csp</title>
<link>https://coderlegion.com/tag/csp</link>
<description>Powered by Question2Answer</description>
<item>
<title>Securing an Angular Application: Part 2 — Preparing the Nginx Layer</title>
<link>https://coderlegion.com/30795/securing-an-angular-application-part-2-preparing-the-nginx-layer</link>
<description>&lt;p&gt;Continuing my series on &lt;strong&gt;hardening Angular applications&lt;/strong&gt;, Part 2 moves from browser security concepts into the server layer.&lt;/p&gt;
&lt;p&gt;In this part, I focus on the &lt;strong&gt;Nginx configuration used to serve an Angular application&lt;/strong&gt; and build the foundation required before introducing Content Security Policy (CSP).&lt;/p&gt;
&lt;p&gt;Some of the topics covered:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;⚙️ Nginx configuration basics&lt;/li&gt;
&lt;li&gt;📦 Serving Angular static assets&lt;/li&gt;
&lt;li&gt;🗜️ Gzip compression&lt;/li&gt;
&lt;li&gt;💾 Static asset caching&lt;/li&gt;
&lt;li&gt;🔀 Angular SPA routing&lt;/li&gt;
&lt;li&gt;🚫 Restricting access to sensitive files&lt;/li&gt;
&lt;li&gt;⚠️ Error page handling&lt;/li&gt;
&lt;li&gt;🔧 Preparing the Nginx layer for CSP&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The goal is to understand &lt;strong&gt;why each configuration exists&lt;/strong&gt; rather than simply copying an Nginx configuration from somewhere else.&lt;/p&gt;
&lt;p&gt;This part establishes the Nginx foundation. In the next part, I'll move into the actual &lt;strong&gt;Angular server configuration and CSP implementation&lt;/strong&gt;, including how the policy is built around the application's resource requirements.&lt;/p&gt;
&lt;p&gt;📖 &lt;strong&gt;Read Part 2:&lt;/strong&gt;&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://medium.com/@jangidamit800/angular-csp-configuring-content-security-policy-with-nginx&quot;&gt;https://medium.com/@jangidamit800/angular-csp-configuring-content-security-policy-with-nginx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; #Angular #AngularSecurity #Nginx #CSP #WebSecurity #DevSecOps #FrontendSecurity #Docker&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/30795/securing-an-angular-application-part-2-preparing-the-nginx-layer</guid>
<pubDate>Mon, 12 Oct 2026 11:43:40 +0000</pubDate>
</item>
<item>
<title>Angular Security Headers: A Practical Guide to Securing Your Angular Application</title>
<link>https://coderlegion.com/30585/angular-security-headers-a-practical-guide-to-securing-your-angular-application</link>
<description>&lt;p&gt;I've started a new series focused on hardening Angular applications using browser and HTTP security controls.&lt;/p&gt;
&lt;p&gt;In Part 1, I cover the fundamentals of security headers and how they add another layer of protection between an Angular application and the browser.&lt;/p&gt;
&lt;p&gt;Some of the topics covered:&lt;/p&gt;
&lt;p&gt;🔒 HSTS — enforcing HTTPS&lt;br&gt;
🛡️ X-Content-Type-Options&lt;br&gt;
🧭 Referrer-Policy&lt;br&gt;
🎯 Permissions-Policy&lt;br&gt;
🚫 X-Frame-Options&lt;br&gt;
🔄 Cross-Origin Opener Policy (COOP)&lt;br&gt;
🌐 Cross-Origin Resource Policy (CORP)&lt;br&gt;
🔐 Content Security Policy (CSP)&lt;br&gt;
The goal of this series isn't to simply copy a list of security headers, but to understand what each header does, what problem it addresses, and how these controls fit into a real Angular deployment.&lt;/p&gt;
&lt;p&gt;This is Part 1, where we establish the foundation. The upcoming parts will move into the actual CSP, Nginx, and Docker configuration used to serve the application.&lt;/p&gt;
&lt;p&gt;📖 Read Part 1:&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://medium.com/@jangidamit800/hardening-an-angular-application-understanding-security-headers-0c65644b981b&quot;&gt;https://medium.com/@jangidamit800/hardening-an-angular-application-understanding-security-headers-0c65644b981b&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Would love to hear how others approach security hardening for Angular applications.&lt;/p&gt;
&lt;p&gt; #Angular #AngularSecurity #WebSecurity #CSP #Nginx #DevSecOps #FrontendSecurity #WebDevelopment&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/30585/angular-security-headers-a-practical-guide-to-securing-your-angular-application</guid>
<pubDate>Sat, 10 Oct 2026 12:37:43 +0000</pubDate>
</item>
</channel>
</rss>