2017年9月25日

webapi ajax 跨域

摘要: 一.使用Nuget搜索“microsoft.aspnet.webapi.cors二.jQuery.support.cors = true;三.指定域名 [EnableCors(origins: "http://localhost:8081/", headers: "*", methods: "GET 阅读全文

posted @ 2017-09-25 17:07 A欣 阅读(185) 评论(0) 推荐(0) 编辑

asp.net登录票据验证

摘要: * 1.设置<authentication mode="Forms"/> * 2.票据数据保存在cookie中,Logout就一直处于登录状态。 using System;using System.Collections.Generic;using System.Text;using System. 阅读全文

posted @ 2017-09-25 11:08 A欣 阅读(415) 评论(0) 推荐(0) 编辑

导航