2014-03-13 61 views

回答

0

添加該代碼的伎倆:

url1 = '/Custom/url1/' 
url2 = '/Custom/url2/' 
if request.META['PATH_INFO'] == url1 or request.META['PATH_INFO'] == url2: 
    response['Access-Control-Allow-Origin'] = '*'