Reputation: 153
Good Day
I have a normal PHP page doing some functions I am trying to use GEOLOCATION from the pages to obtain the handset location.
I am getting error now stating **Error: Only secure origins are allowed (see: **
Is there a way I can change the PHP page to use HTTPS or do I require to buy a SSL Certificate for the site? I have never worked with HTTPS before and not sure how to direct the page to become HTTPS or how to alter the page for this.
What would be the best method for this.
Upvotes: 0
Views: 457
Reputation: 2253
Php has nothing to do with HTTPS. Your server needs to provide SSL certificates that you can buy or find somewhere.
If you already have those you can then use php, or javascript or whatever to force the user to use HTTPS doing maybe a redirect or something similar.
Upvotes: 1