Javascript 应用程序在本地主机上 运行 但在部署时它 运行 不正确
Javscript App is running on local Host but when it is deployed it not running properly
我已经使用 accuweather api 制作了一个天气应用程序,它在本地主机上运行良好,但在部署时它无法执行其功能
this is the error which am getting
请检查this blog post关于混合内容:
What is Mixed Content?
When a user visits a page served over HTTP,
their connection is open for eavesdropping and man-in-the-middle
(MITM) attacks. When a user visits a page served over HTTPS, their
connection with the web server is authenticated and encrypted with SSL
and hence safeguarded from eavesdroppers and MITM attacks.
However, if an HTTPS page includes HTTP content, the HTTP portion can
be read or modified by attackers, even though the main page is served
over HTTPS. When an HTTPS page has HTTP content, we call that content
“mixed”. The webpage that the user is visiting is only partially
encrypted, since some of the content is retrieved unencrypted over
HTTP. The Mixed Content Blocker blocks certain HTTP requests on HTTPS
pages.
正如我在您的屏幕截图中看到的那样,API 是通过 HTTP 集成的。您可能在生产服务器上使用 HTTPS。
我已经使用 accuweather api 制作了一个天气应用程序,它在本地主机上运行良好,但在部署时它无法执行其功能
this is the error which am getting
请检查this blog post关于混合内容:
What is Mixed Content? When a user visits a page served over HTTP, their connection is open for eavesdropping and man-in-the-middle (MITM) attacks. When a user visits a page served over HTTPS, their connection with the web server is authenticated and encrypted with SSL and hence safeguarded from eavesdroppers and MITM attacks.
However, if an HTTPS page includes HTTP content, the HTTP portion can be read or modified by attackers, even though the main page is served over HTTPS. When an HTTPS page has HTTP content, we call that content “mixed”. The webpage that the user is visiting is only partially encrypted, since some of the content is retrieved unencrypted over HTTP. The Mixed Content Blocker blocks certain HTTP requests on HTTPS pages.
正如我在您的屏幕截图中看到的那样,API 是通过 HTTP 集成的。您可能在生产服务器上使用 HTTPS。