added cors bundle to allow external api access (#655)

This commit is contained in:
Kevin Papst
2019-03-23 11:04:55 +01:00
committed by GitHub
parent 13d9f8f3f7
commit 38ae013e03
8 changed files with 103 additions and 1 deletions

View File

@@ -25,3 +25,7 @@ DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/kimai.sqlite
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
###< nelmio/cors-bundle ###