当前位置: 动力学知识库 > 问答 > 编程问答 >

jquery - How can I make a javascript file to a valid https url?

问题描述:

Let say my javascript file name is downloader.js and I want to make it like below:

https://<somedomain>/downloader.js

This Javascript file will be used by a chrome extension. The chrome extension needs a valid https URL for the javascript file.

网友答案:

You will need to register a domain name, that is where you choose what you want to use, for example "example.com". When you register the name, you purchase it and it is yours.

Once you have a domain name, you can set up hosting. In many cases a shared hosting account will suffice. Setting up hosting means you are leasing space on a server where the files for your web site will be.

Once you have a domain name and hosting, place downloader.js in DocumentRoot.

If you don't already have HTTPS, check with your hosting company.

分享给朋友:
您可能感兴趣的文章:
随机阅读: