Skip to content

Commit

Permalink
Restrict CORS access to localradio.koenvh.nl
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenvh1 committed Feb 16, 2020
1 parent f70ecc8 commit 038469f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
Binary file modified server/.vs/ETS2 Local Radio desktop/v16/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion server/ETS2 Local Radio desktop/SimpleServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ private void Listen()
private void Process(HttpListenerContext context)
{
context.Response.AddHeader("Cache-Control", "no-store, must-revalidate");
context.Response.AddHeader("Access-Control-Allow-Origin", "*");
context.Response.AddHeader("Access-Control-Allow-Origin", "http://localradio.koenvh.nl");

string filename = context.Request.Url.AbsolutePath;
//Console.WriteLine(filename);
Expand Down

0 comments on commit 038469f

Please sign in to comment.