Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ShowcaseProject/ShowcaseAPI/Hubs/GameHub.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.SignalR;
using Microsoft.EntityFrameworkCore.Metadata.Internal;

namespace ShowcaseAPI.Hubs
{
Expand Down
3 changes: 0 additions & 3 deletions ShowcaseProject/ShowcaseAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@
if (!app.Environment.IsDevelopment())
{
app.UseHttpsRedirection();
}
if (app.Environment.IsDevelopment())
{
app.UseCors("AllowFrontendDevelopment");
}else
{
Expand Down
8 changes: 4 additions & 4 deletions ShowcaseProject/ShowcaseFrontend/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
app.UseExceptionHandler("/Home/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
if (!app.Environment.IsDevelopment())
{

app.Use(async (context, next) =>
{
context.Response.Headers.Append("Content-Security-Policy",
Expand Down Expand Up @@ -74,7 +72,7 @@
"frame-ancestors 'none'; " +
"base-uri 'self'; " +
"form-action 'self';" +
"connect-src 'self' ws://localhost:* http://localhost:5001; ");
"connect-src 'self' https://cdnjs.cloudflare.com ws://localhost:* http://localhost:5001; ");
await next();
});
}
Expand All @@ -98,3 +96,5 @@


app.Run();
Console.WriteLine($"Environment: {app.Environment.EnvironmentName}");

43 changes: 42 additions & 1 deletion ShowcaseProject/ShowcaseFrontend/Views/Privacy/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,47 @@
@{
ViewData["Title"] = "Privacy Policy";
}
<style>
th,td{
padding-left:5px;
padding-right:5px;
}
</style>
<h1>@ViewData["Title"]</h1>

<p>Use this page to detail your site's privacy policy.</p>
<p>
Op deze website worden persoongegevens verwerkt.
Wij willen u zo goed mogelijk informeren waarom wij deze gegevens verwerken en hoelang wij deze bewaren.
</p>

<h2>Persoongegevens die verwerkt worden</h2>
<table>
<tr>
<th>Persoongegeven</th>
<th>Reden van verwerking</th>
<th>Bewaartermijn</th>
<th>Externe verwerkers</th>
</tr>
<tr>
<td>Voornaam en achternaam</td>
<td>Het voorstellen via het contact formulier</td>
<td>Maximaal 30 dagen.</td>
<td>MailTrap.io</td>
</tr>
<tr>
<td>Telefoonnummer</td>
<td>Het kunnen na verzenden van het contact formulier</td>
<td>Maximaal 30 dagen.</td>
<td>MailTrap.io</td>
</tr>
</table>

<h3>
Informatie verwerkingsverantwoordelijke
</h3>
<p>Mocht u vragen hebben over de verwerking van uw persoonsgegevens kunt u contact opnemen via hieronder staande gegevens.</p>
<ul>
<li>Erik Leusink</li>
<li>[email protected]</li>
</ul>

4 changes: 4 additions & 0 deletions ShowcaseProject/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ services:
- showcaseapi
environment:
- API_BASE_URL=http://showcaseapi
- ASPNETCORE_ENVIRONMENT=Development
- DOTNET_ENVIRONMENT=Development
volumes:
- ./ShowcaseFrontend:/app/ShowcaseFrontend
- ~/.nuget/packages:/root/.nuget/packages:ro
Expand All @@ -44,6 +46,8 @@ services:
environment:
- SQLSERVER_HOST=sqlserver
- SQLSERVER_PORT=1433
- ASPNETCORE_ENVIRONMENT=Development
- DOTNET_ENVIRONMENT=Development

showcaseapitesting:
build:
Expand Down