我有一个运行wordpress的托管域(http:// xxxxxxxx.net)和一个用于存储文件的云服务器
我从云服务器获得了直接文件url (http:// xxxxx.com/uplaod/123/123.mp4)
如何使它文件url只能在我的域(http:// xxxxxxxx.net)播放视频。
我试试看这个
# ALLOW USER BY IP
<Limit GET POST>
order deny,allow
deny from all
allow from xxxxxxxxx.net
</Limit>
当我访问这个网址时
http:// xxxx
我希望为给定的网址生成pdf文件。客户端将发送ids,并且使用该ids服务器将创建url并使用pdf生成器来生成pdf。pdf是为登录页面而不是所需页面生成的。
客户端是angular 10,服务器是.net Core3.1。身份验证cookie被分配给pdf转换器,但仍然没有运气。
代码
private FileContentResult PdfGenerate(int bookId, int? pageId)
{
//generate pdf for this url. This url can be accessed in the browser
string url = $"{