简体   繁体   English

如何将http转换为https的Facebook应用程序

[英]how to convert the http to https the facebook app

I develop the facebook app, it default as http.My admin taken the ssl certificate for the https,he done the his work on iis 7.0 . 我开发了facebook应用程序,默认为http。我的管理员为https获取了ssl证书,他在iis 7.0上完成了他的工作。 now browse the my facebook app,it works in http mode. 现在浏览我的facebook应用程序,它可以在http模式下工作。 but it did not work properly in the https. 但在https中无法正常运行。 i calling the response from ajax through js,response is not getting ajax to my app. 我通过js从ajax调用响应,响应没有使ajax进入我的应用程序。 i wrote the path as "http://", how to call the "https". 我将路径写为“ http://”,即如何调用“ https”。

my app will be work in both http and https . 我的应用程序可以同时在http和https中使用

please give the your value words for me. 请给我你最有价值的话。 thanks in advance. 提前致谢。

i calling the response from ajax through js,response is not getting ajax to my app 我通过js从ajax调用响应,响应没有将ajax传递到我的应用程序

For (normal) AJAX requests to work the domain, protocol and port have to match that of the page – it's called same origin policy . 对于(正常)AJAX请求,要使用域,协议和端口,必须使其与页面中的请求相匹配-这称为“ 相同来源策略” If your page is called via HTTPS you can not make an AJAX request to the HTTP version of your domain. 如果您的网页是通过HTTPS调用的,则您无法向域的HTTP版本发出AJAX请求。

i wrote the path as "http://", how to call the "https". 我将路径写为“ http://”,即如何调用“ https”。

Don't specify the protocol at all, then the browser figures out by himself if he has to use http:// or https:// 完全不指定协议,然后浏览器自己确定是否必须使用http://或https://

If you can't use just a relative path, then give an absolute path without protocol – that is, //example.com/foo/bar.php instead of http://example.com/foo/bar.php (replace with your own domain, obviously). 如果您不能仅使用相对路径,请提供没有协议的绝对路径-即//example.com/foo/bar.php而不是http://example.com/foo/bar.php (替换与您自己的域,很明显)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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