简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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