问答详情
源自:5-4 交易模型管理--交易下单03

下单失败,原因为undefined

Failed to load http://localhost:8090/order/createorder: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404.

浏览器报错是跨域问题,可我OrderController和getItem.html两边都设置了跨域的那句代码,这是怎么回事?和jquery版本有关系吗,我用的是3.3.1

提问者:慕沐8284410 2019-01-19 17:15

个回答

  • 慕沐8284410
    2019-01-19 20:44:05

    找到原因了,注解里create少打了e   太扎心了