Re: Access-Control-Allow-Origin header in CLI server
| From: | Daniel Lowrey | Date: | Fri, 05 Jul 2013 22:48:32 +0000 |
| Subject: | Re: Access-Control-Allow-Origin header in CLI server | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-68070@lists.php.net to get a copy of this message | ||
This is not the sort of thing that belongs in an HTTP server by
default. It's a one-off header that some users may elect to send but
the vast majority will not. If you need to simulate the feature of an
third-party server mod/plugin you should manually make a
header('Access-Control-Allow-Origin: ...') as needed in your
development code.
From an HTTP standpoint, baking this directly into the CLI server
doesn't make much sense IMO.