Skip to content

Commit f4966cd

Browse files
committed
fix(security): agrega X-Frame-Options en web.config
1 parent 6323437 commit f4966cd

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

  • backend/SENATICRUD/SENATICRUD

backend/SENATICRUD/SENATICRUD/bin/Release/net8.0/publish/web.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
77
</handlers>
88
<aspNetCore processPath="dotnet" arguments=".\SENATICRUD.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
9+
10+
<httpProtocol>
11+
<customHeaders>
12+
<add name="X-Frame-Options" value="SAMEORIGIN" />
13+
</customHeaders>
14+
</httpProtocol>
15+
916
</system.webServer>
1017
</location>
1118
</configuration>

backend/SENATICRUD/SENATICRUD/obj/Release/net8.0/PubTmp/Out/web.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
77
</handlers>
88
<aspNetCore processPath="dotnet" arguments=".\SENATICRUD.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
9+
10+
<httpProtocol>
11+
<customHeaders>
12+
<add name="X-Frame-Options" value="SAMEORIGIN" />
13+
</customHeaders>
14+
</httpProtocol>
15+
916
</system.webServer>
1017
</location>
1118
</configuration>

0 commit comments

Comments
 (0)