Skip to content

Commit fcbdb94

Browse files
committed
added privacy policy
1 parent 9c2dbde commit fcbdb94

File tree

5 files changed

+50
-9
lines changed

5 files changed

+50
-9
lines changed

ShowcaseProject/ShowcaseAPI/Hubs/GameHub.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Microsoft.AspNetCore.SignalR;
2-
using Microsoft.EntityFrameworkCore.Metadata.Internal;
32

43
namespace ShowcaseAPI.Hubs
54
{

ShowcaseProject/ShowcaseAPI/Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@
8181
if (!app.Environment.IsDevelopment())
8282
{
8383
app.UseHttpsRedirection();
84-
}
85-
if (app.Environment.IsDevelopment())
86-
{
8784
app.UseCors("AllowFrontendDevelopment");
8885
}else
8986
{

ShowcaseProject/ShowcaseFrontend/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
app.UseExceptionHandler("/Home/Error");
4040
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
4141
app.UseHsts();
42-
}
43-
if (!app.Environment.IsDevelopment())
44-
{
42+
4543
app.Use(async (context, next) =>
4644
{
4745
context.Response.Headers.Append("Content-Security-Policy",
@@ -74,7 +72,7 @@
7472
"frame-ancestors 'none'; " +
7573
"base-uri 'self'; " +
7674
"form-action 'self';" +
77-
"connect-src 'self' ws://localhost:* http://localhost:5001; ");
75+
"connect-src 'self' https://cdnjs.cloudflare.com ws://localhost:* http://localhost:5001; ");
7876
await next();
7977
});
8078
}
@@ -98,3 +96,5 @@
9896

9997

10098
app.Run();
99+
Console.WriteLine($"Environment: {app.Environment.EnvironmentName}");
100+
Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,47 @@
11
@{
22
ViewData["Title"] = "Privacy Policy";
33
}
4+
<style>
5+
th,td{
6+
padding-left:5px;
7+
padding-right:5px;
8+
}
9+
</style>
410
<h1>@ViewData["Title"]</h1>
511

6-
<p>Use this page to detail your site's privacy policy.</p>
12+
<p>
13+
Op deze website worden persoongegevens verwerkt.
14+
Wij willen u zo goed mogelijk informeren waarom wij deze gegevens verwerken en hoelang wij deze bewaren.
15+
</p>
16+
17+
<h2>Persoongegevens die verwerkt worden</h2>
18+
<table>
19+
<tr>
20+
<th>Persoongegeven</th>
21+
<th>Reden van verwerking</th>
22+
<th>Bewaartermijn</th>
23+
<th>Externe verwerkers</th>
24+
</tr>
25+
<tr>
26+
<td>Voornaam en achternaam</td>
27+
<td>Het voorstellen via het contact formulier</td>
28+
<td>Maximaal 30 dagen.</td>
29+
<td>MailTrap.io</td>
30+
</tr>
31+
<tr>
32+
<td>Telefoonnummer</td>
33+
<td>Het kunnen na verzenden van het contact formulier</td>
34+
<td>Maximaal 30 dagen.</td>
35+
<td>MailTrap.io</td>
36+
</tr>
37+
</table>
38+
39+
<h3>
40+
Informatie verwerkingsverantwoordelijke
41+
</h3>
42+
<p>Mocht u vragen hebben over de verwerking van uw persoonsgegevens kunt u contact opnemen via hieronder staande gegevens.</p>
43+
<ul>
44+
<li>Erik Leusink</li>
45+
<li>s1157193@student.windesheim.nl</li>
46+
</ul>
47+

ShowcaseProject/docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ services:
2424
- showcaseapi
2525
environment:
2626
- API_BASE_URL=http://showcaseapi
27+
- ASPNETCORE_ENVIRONMENT=Development
28+
- DOTNET_ENVIRONMENT=Development
2729
volumes:
2830
- ./ShowcaseFrontend:/app/ShowcaseFrontend
2931
- ~/.nuget/packages:/root/.nuget/packages:ro
@@ -44,6 +46,8 @@ services:
4446
environment:
4547
- SQLSERVER_HOST=sqlserver
4648
- SQLSERVER_PORT=1433
49+
- ASPNETCORE_ENVIRONMENT=Development
50+
- DOTNET_ENVIRONMENT=Development
4751

4852
showcaseapitesting:
4953
build:

0 commit comments

Comments
 (0)