在我的PHP文件中,我写道: header('Access-Control-Allow-Methods:GET'); 但是我仍然允许邮递员使用GET方法
我正在使用Apache和PHP
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');
header('Access-Control-Allow-Methods: GET');
header('Access-Control-Allow-Headers: Access-Control-Allow-Headers, Content-Type, Access-Control-Allow-Methods, Authorization, X-Requested-With');
我希望POST请求将被阻止