asp实现跨域名

xtxc 2018-08-22 09:34:16
Response.AddHeader "Access-Control-Allow-Origin", "*"
加了这个无效
又在网上找了这些
Response.AddHeader "Access-Control-Allow-Methods", "POST, GET, OPTIONS"
Response.AddHeader "Access-Control-Allow-Headers", "Content-Type, Authorization, Accept,X-Requested-With"
仍然无效,请问asp要添加什么内容,才能实现跨域访问呢?
...全文
529 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
孟子E章 2018-08-23
  • 打赏
  • 举报
回复
你是想给第三方网站提供接口访问
还是asp自己访问第三方的网站?
xtxc 2018-08-22
  • 打赏
  • 举报
回复
在本地hondy访问本地跨域localhost
出错提示:Failed to load http://localhost/html?mid=15: Redirect from 'http://localhost/html?mid=15' to 'http://localhost/html/?mid=15' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://hondy' is therefore not allowed access.

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧