fix for antiforgery exceptions
This commit is contained in:
parent
d483f7bd6a
commit
68e652db4a
@ -1,7 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
|
using Microsoft.AspNetCore.DataProtection;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
using System.IO;
|
||||||
using System.Text.Encodings.Web;
|
using System.Text.Encodings.Web;
|
||||||
using System.Text.Unicode;
|
using System.Text.Unicode;
|
||||||
|
|
||||||
@ -43,6 +45,9 @@ namespace GanjooRazor
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
services.AddDataProtection()
|
||||||
|
.PersistKeysToFileSystem(new DirectoryInfo(Configuration["DataProtectionPersistPath"]))
|
||||||
|
.SetApplicationName("GanjooRazor");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -20,5 +20,6 @@
|
|||||||
"AggressiveCacheEnabled": "False",
|
"AggressiveCacheEnabled": "False",
|
||||||
"BannersEnabled": "False",
|
"BannersEnabled": "False",
|
||||||
"ReadOnlyMode": "False",
|
"ReadOnlyMode": "False",
|
||||||
|
"DataProtectionPersistPath": "C:\\Keys",
|
||||||
"MaintenanceMode": "False"
|
"MaintenanceMode": "False"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2595,7 +2595,7 @@
|
|||||||
returns image stream with image/jpeg MIME type
|
returns image stream with image/jpeg MIME type
|
||||||
</summary>
|
</summary>
|
||||||
<param name="id"></param>
|
<param name="id"></param>
|
||||||
<param name="size"></param>
|
<param name="size">norm/orig/thumb</param>
|
||||||
<param name="mimeForResized"></param>
|
<param name="mimeForResized"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user