简体   繁体   English

使用fineuploader,如何使用HTTPS端点?

[英]Using fineuploader, how can I use a HTTPS endpoint?

I am relatively new to javascript, and I got an uploader tool called fineuploader that I was considering to use. 我对javascript还是比较陌生,我有一个正在考虑使用的名为Fineuploader的上传器工具。 However locally (development machine) I got it to work (vb.net), but when I put it on my external server, I noticed that there is a post done in http and directly to the server's domain name (e/g/ mydomain.com), instead of mydomain.com/testproject. 但是在本地(开发机器)上,我可以使用它(vb.net),但是当我将其放在外部服务器上时,我注意到在http上直接发布了一个帖子,直接指向服务器的域名(e / g / mydomain .com),而不是mydomain.com/testproject。 The site only allows for https traffic. 该网站仅允许https流量。

Is there an easy way to change this? 有没有简单的方法可以改变这一点? (so it should point at https://mydomain.com/testproject/FileUpload.aspx (因此它应该指向https://mydomain.com/testproject/FileUpload.aspx

The code used by fineuploader shows a parameter called 'endpoint: '/FileUpload.aspx' fineuploader使用的代码显示了一个名为'endpoint:'/FileUpload.aspx'的参数。

Do I have to make changes in the settings of IIS for this webservice? 我是否需要对此Web服务的IIS设置进行更改?

If you need to enable CORS (cross-domain requests), Fine Uploader supports this. 如果您需要启用CORS(跨域请求),Fine Uploader支持此功能。 You should read my blog post on how CORS support is implemented in Fine Uploader and how you can support such requests in your server-side code. 您应该阅读我的博客文章 ,了解如何在Fine Uploader中实现CORS支持以及如何在服务器端代码中支持此类请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM