angular restful post请求

WBOY
Release: 2016-06-06 20:36:05
Original
872 people have browsed it

目前 我前端angular rest到后台的接口 /api/project,后台用phpapache,默认对index.php 重写可以略去~现在就是get ,put ,delete都能访问到后台 ,唯独post无法访问到,直接301 跳转,但是post后面url加上index.php 则可以访问到。望大神解惑啊~

回复内容:

目前 我前端angular rest到后台的接口 /api/project,后台用phpapache,默认对index.php 重写可以略去~现在就是get ,put ,delete都能访问到后台 ,唯独post无法访问到,直接301 跳转,但是post后面url加上index.php 则可以访问到。望大神解惑啊~

试试参数别写在url里面

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template