解决Ajax跨域访问报“没有权限”的错误。
代码下载地址:
http://dev.mo.cn/upfiles/20101118175349810.rar
<!--#include file="smart.asp"-->
<%
Response.charset="utf-8"
dim url,method,data,charset
url =Request.Form("targeturl")
method =Request.Form("method")
data =Request.Form("data")
charset = Request.Form("charset")
if charset = "" then charset = "GB2312"
response.Write SmartHttp(url,method,data).send().gettext(charset)
set myhttp = nothing
%>
本文提供了一种解决Ajax跨域访问时出现“没有权限”错误的方法,并附带了一个可供下载的示例代码,通过使用ASP脚本来实现跨域请求。
3512

被折叠的 条评论
为什么被折叠?



