CORS跨域请求之简单请求与非简单请求
原文地址:https://www.cnblogs.com/renpingsheng/p/7688134.html
先来看一个例子
定义 server01 的项目,在路由表中添加一条路由记录
url(r'^getData.html$',views.get_data)
对应的视图函数
from django.shortcuts import render,HttpResponse
...
转载
2019-06-13 11:01:24 ·
2340 阅读 ·
0 评论