File tree Expand file tree Collapse file tree 5 files changed +50
-9
lines changed Expand file tree Collapse file tree 5 files changed +50
-9
lines changed Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . SignalR ;
2- using Microsoft . EntityFrameworkCore . Metadata . Internal ;
32
43namespace ShowcaseAPI . Hubs
54{
Original file line number Diff line number Diff line change 8181if ( ! app . Environment . IsDevelopment ( ) )
8282{
8383 app . UseHttpsRedirection ( ) ;
84- }
85- if ( app . Environment . IsDevelopment ( ) )
86- {
8784 app . UseCors ( "AllowFrontendDevelopment" ) ;
8885} else
8986{
Original file line number Diff line number Diff line change 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" ,
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}
9896
9997
10098app . Run ( ) ;
99+ Console . WriteLine ( $ "Environment: { app . Environment . EnvironmentName } ") ;
100+
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments