具有相同网域的同源策略,但https(Same origin policy with same domain, but https)

编程入门 行业动态 更新时间:2024-10-27 08:33:36
具有相同网域的同源策略,但https(Same origin policy with same domain, but https)

我想从http://www.somedomain.comhttps://www.somedomain.com进行网络服务呼叫

如果没有设置测试的麻烦,有人可以证实这是否会被视为同一起源?

我的假设是这样可以,因为在这种情况下Cookie成功共享。

I'd like to make a web service call from http://www.somedomain.com to https://www.somedomain.com

Without going to the trouble of setting up a test, could someone confirm if this will be considered the same origin?

My assumption is that this will be fine, seeing as cookies are shared successfully in this situation.

最满意答案

不,它不会工作的url需要相同的域和相同的协议请参阅http://en.wikipedia.org/wiki/Same_origin_policy

No, it wont work the url needs the same domain and the same protocol see http://en.wikipedia.org/wiki/Same_origin_policy

更多推荐

本文发布于:2023-07-23 04:39:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1227566.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:策略   https   origin   policy   domain

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!