controleonline/multi-tenancy

dev-master 2024-10-06 03:06 UTC

This package is auto-updated.

Last update: 2024-11-06 03:28:20 UTC


README

Scrutinizer Code Quality

multi-tenancy

composer require controleonline/multi-tenancy:dev-master

Add Service import: config\services.yaml

imports:
    - { resource: "../vendor/controleonline/multi-tenancy/config/config.yaml" }    

Add 'app-domain' a header on CORS: config\packages\nelmio_cors.yaml

nelmio_cors:
    defaults:
        origin_regex: true
        allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
        allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
        allow_headers: ['Content-Type', 'Authorization', 'API-TOKEN','app-domain']
        expose_headers: ['Link']
        max_age: 3600
    paths:
        '^/': ~