[php-src] Issue #7777: Cli-server mode cannot send Access-Control-Allow-Origin header

From: Date: Wed, 15 Dec 2021 03:58:54 +0000
Subject: [php-src] Issue #7777: Cli-server mode cannot send Access-Control-Allow-Origin header
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238419@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7777
Author: huye

### Description

The following code:

```php
<?php

header('Access-Control-Allow-Origin: *');
header("Access-Control-Expose-Headers: Content-Disposition");
header('Access-Control-Origin: xxx.hoo.com');
die('header test');
```

Resulted in this output:
```
I used the curl -I command to test, but did not output the first header.
```

But I expected this output instead:
```
```


### PHP Version

PHP 7.4.3

### Operating System

kde neon / Ubuntu 20.04.3 LTS


Thread (1 message)

  • huye
« previous php.bugs (#238419) next »