Forums de discussion
why the Request Method:OPTIONS using alloyui?
琪 范, modifié il y a 7 années.
why the Request Method:OPTIONS using alloyui?
New Member Publications: 12 Date d'inscription: 17/03/16 Publications récentes
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.