- The front page request h5 backend interface will appear across domains, PHP just three lines of code to solve
//解决前端跨域(h5页面) header("Access-Control-Allow-Origin:*"); header('Access-Control-Allow-Methods:POST'); header('Access-Control-Allow-Headers:x-requested-with, content-type');
PHP solve cross-domain h5 page
Guess you like
Origin www.cnblogs.com/bneglect/p/11611809.html
Recommended
Ranking