server/src/config/cors.php
author ymh <ymh.work@gmail.com>
Sat, 10 Jun 2017 22:43:58 +0200
changeset 536 b64c8c35c67d
parent 107 16e1473a6a99
permissions -rw-r--r--
add a external link icon to viaf links, correct bug #27355 (https://mantis.culture.fr/mantis/view.php?id=27355)

<?php

return [
    /*
     |--------------------------------------------------------------------------
     | Laravel CORS
     |--------------------------------------------------------------------------
     |

     | allowedOrigins, allowedHeaders and allowedMethods can be set to array('*')
     | to accept any value, the allowed methods however have to be explicitly listed.
     |
     */
    'supportsCredentials' => false,
    'allowedOrigins' => ['*'],
    'allowedHeaders' => ['*'],
    'allowedMethods' => ['GET',],
    'exposedHeaders' => [],
    'maxAge' => 0,
    'hosts' => [],
];