diff --git a/ShowcaseProject/ShowcaseAPI/Hubs/GameHub.cs b/ShowcaseProject/ShowcaseAPI/Hubs/GameHub.cs index 57ce557..b309802 100644 --- a/ShowcaseProject/ShowcaseAPI/Hubs/GameHub.cs +++ b/ShowcaseProject/ShowcaseAPI/Hubs/GameHub.cs @@ -1,5 +1,4 @@ using Microsoft.AspNetCore.SignalR; -using Microsoft.EntityFrameworkCore.Metadata.Internal; namespace ShowcaseAPI.Hubs { diff --git a/ShowcaseProject/ShowcaseAPI/Program.cs b/ShowcaseProject/ShowcaseAPI/Program.cs index 001937e..57fde6d 100644 --- a/ShowcaseProject/ShowcaseAPI/Program.cs +++ b/ShowcaseProject/ShowcaseAPI/Program.cs @@ -81,9 +81,6 @@ if (!app.Environment.IsDevelopment()) { app.UseHttpsRedirection(); -} -if (app.Environment.IsDevelopment()) -{ app.UseCors("AllowFrontendDevelopment"); }else { diff --git a/ShowcaseProject/ShowcaseFrontend/Program.cs b/ShowcaseProject/ShowcaseFrontend/Program.cs index 03bf975..e7a925a 100644 --- a/ShowcaseProject/ShowcaseFrontend/Program.cs +++ b/ShowcaseProject/ShowcaseFrontend/Program.cs @@ -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", @@ -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(); }); } @@ -98,3 +96,5 @@ app.Run(); +Console.WriteLine($"Environment: {app.Environment.EnvironmentName}"); + diff --git a/ShowcaseProject/ShowcaseFrontend/Views/Privacy/Index.cshtml b/ShowcaseProject/ShowcaseFrontend/Views/Privacy/Index.cshtml index af4fb19..0970201 100644 --- a/ShowcaseProject/ShowcaseFrontend/Views/Privacy/Index.cshtml +++ b/ShowcaseProject/ShowcaseFrontend/Views/Privacy/Index.cshtml @@ -1,6 +1,47 @@ @{ ViewData["Title"] = "Privacy Policy"; } +
Use this page to detail your site's privacy policy.
++ Op deze website worden persoongegevens verwerkt. + Wij willen u zo goed mogelijk informeren waarom wij deze gegevens verwerken en hoelang wij deze bewaren. +
+ +| Persoongegeven | +Reden van verwerking | +Bewaartermijn | +Externe verwerkers | +
|---|---|---|---|
| Voornaam en achternaam | +Het voorstellen via het contact formulier | +Maximaal 30 dagen. | +MailTrap.io | +
| Telefoonnummer | +Het kunnen na verzenden van het contact formulier | +Maximaal 30 dagen. | +MailTrap.io | +
Mocht u vragen hebben over de verwerking van uw persoonsgegevens kunt u contact opnemen via hieronder staande gegevens.
+