fix: remove stdout diagnostic print
This commit is contained in:
parent
74e7187cba
commit
d6c24d80c1
@ -1,4 +1,4 @@
|
|||||||
using Humanizer;
|
using Humanizer;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.Extensions.Primitives;
|
using Microsoft.Extensions.Primitives;
|
||||||
using OliverBooth.Data.Blog;
|
using OliverBooth.Data.Blog;
|
||||||
@ -29,7 +29,6 @@ public sealed class BlogApiController : ControllerBase
|
|||||||
if (take == -1) take = _blogService.AllPosts.Count;
|
if (take == -1) take = _blogService.AllPosts.Count;
|
||||||
|
|
||||||
var referer = Request.Headers["Referer"].ToString();
|
var referer = Request.Headers["Referer"].ToString();
|
||||||
Console.WriteLine($"Referer: {referer}");
|
|
||||||
if (!referer.StartsWith(Url.PageLink("/Blog/Index")!))
|
if (!referer.StartsWith(Url.PageLink("/Blog/Index")!))
|
||||||
{
|
{
|
||||||
return NotFound();
|
return NotFound();
|
||||||
|
Loading…
Reference in New Issue
Block a user