php接收前端登录页面的写法
<?php
session_start();
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Method:POST,GET');
header("Content-type: text/html; charset=UTF-8");
//接收来自前端的对象
$raw_post_data = file_get_contents('php://input');
$arr = json_decode($raw_pos
原创
2022-04-22 23:55:08 ·
272 阅读 ·
0 评论