

nelmio_cors:
    defaults:
        allow_credentials: false
        allow_origin: []
        allow_headers: []
        allow_methods: []
        expose_headers: []
        max_age: 0
        hosts: []
        origin_regex: false
        forced_allow_origin_value: ~
    paths:
        '^/api/v1':
            origin_regex: true
            allow_origin: ['^http://localhost:[0-9]+','https://testshare.epassevents.cm','https://biocarrylife.com'] # You probably want to change this regex to match your real domain
            allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
            allow_headers: ['Content-Type', 'Authorization']
            expose_headers: ['Link']
            max_age: 3600
        '^/':
           origin_regex: true
           allow_origin: ['^http://localhost:[0-9]+','https://testshare.epassevents.cm','https://biocarrylife.com']
           allow_headers: ['Content-Type', 'Authorization']
           allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
           max_age: 3600
           hosts: ['^api\v1\.']