Q
What does the Geolocation API require in modern browsers?
-
A
A browser extension
-
B
A secure context (HTTPS) and the user's explicit permission
-
C
Nothing, because it works automatically
-
D
Only a cookie
Correct Answer:
B. A secure context (HTTPS) and the user's explicit permission
Explanation:
The same applies to the camera, microphone, and notifications.