25 de mar de 2018

PHP - enable cross-origin resource sharing

If you don't have access to configure Apache, you can still send the header from a PHP script. It's a case of adding the following to your PHP scripts:
Note: as with all uses of the PHP header function, this must be before any output has been sent from the server.
Site: https://enable-cors.org/server_php.html

Nenhum comentário: