Fórum
why the Request Method:OPTIONS using alloyui?
琪 范, modificado 7 Anos atrás.
why the Request Method:OPTIONS using alloyui?
New Member Postagens: 12 Data de Entrada: 17/03/16 Postagens Recentes
rest url:https://api.douban.com/v2/movie/in_theaters?city=%E6%98%86%E6%98%8E
using jquery, the Request Method is get
but
using alloyui,the Request Method is OPTIONS
cause
XMLHttpRequest cannot load https://api.douban.com/v2/movie/in_theaters?city=%E6%98%86%E6%98%8E. Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers in preflight response.
using jquery, the Request Method is get
but
using alloyui,the Request Method is OPTIONS
cause
XMLHttpRequest cannot load https://api.douban.com/v2/movie/in_theaters?city=%E6%98%86%E6%98%8E. Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers in preflight response.