मैं क्रोम पर HTTP का उपयोग कर अपनी मशीन पर स्थानीय रूप से चल रही साइट के लिए भू-स्थान का उपयोग कर रहा हूं। हालांकि यह काम नहीं करता है क्योंकि मैं एचटीटीपीएस के विरोध में HTTP पर चल रहा हूं।"असुरक्षित-इलाज-असुरक्षित-उत्पत्ति-सुरक्षित-सुरक्षित" ध्वज क्रोम पर काम नहीं कर रहा है
कंसोल पर यह कहते हैं:
getCurrentPosition() and watchPosition() no longer work on insecure origins.
To use this feature, you should consider switching your application to a
secure origin, such as HTTPS. See https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins
for more details.
Deprecating Powerful Features on Insecure Origins के accoriding अपने --unsafely-treat-insecure-origin-as-secure="http://example.com"
ध्वज का उपयोग क्रोम शुरू करने के लिए कहते हैं।
chrome.exe --unsafely-treat-insecure-origin-as-secure="http://hello.app"
हालांकि, एक ही त्रुटि संदेश अभी भी प्रकट होता है: आदेश मैं भाग गया के समान था।
मैं इस समस्या को कैसे ठीक कर सकता हूं।
मेरे लिए काम नहीं दिखना चाहिए। –
यह क्रोम 62 से पहले आवश्यक था। अब इसकी आवश्यकता नहीं है। – EricLaw