开发者

Cross-server javascript issue? js on one server, accessing another server

I had a question. I have a coldfusion server that has javascript, and I am using Flex on another server. I need to use javascript from the CF server to access the Flex server, and 开发者_如何转开发wanted to know if there would be any cross-server (same domain though) issues that would arise. Thanks guys


You can use CORS instead of Ajax, part of HTML 5. Ajax doesn't allow Cross Site Scripting. But the CORS allows. They are all the same, but you should set some additional headers when request, and server should check the headers and response them. take a look at this page. and also this one


There won't be any issues.

JavaScript does't care what language you use to serve up your pages and/or data. The only thing it cares about is 1) is it valid and 2) is it from the same domain as the requesting page.

Nothing else matters.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜