| @@ -79,6 +79,7 @@ | |||||
| <extensions> | <extensions> | ||||
| <extension class="Zenstruck\Browser\Test\BrowserExtension" /> | <extension class="Zenstruck\Browser\Test\BrowserExtension" /> | ||||
| </extensions> | </extensions> | ||||
| ddev exec php bin/phpunit --filter=testPostToCreateNewUserPost | ddev exec php bin/phpunit --filter=testPostToCreateNewUserPost | ||||
| ddev composer require --dev mtdowling/jmespath.php | ddev composer require --dev mtdowling/jmespath.php | ||||
| @@ -1,10 +1,13 @@ | |||||
| nelmio_cors: | nelmio_cors: | ||||
| defaults: | defaults: | ||||
| origin_regex: true | origin_regex: true | ||||
| allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] | |||||
| # allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] | |||||
| allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE'] | allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE'] | ||||
| allow_headers: ['Content-Type', 'Authorization'] | |||||
| expose_headers: ['Link'] | |||||
| # allow_headers: ['Content-Type', 'Authorization'] | |||||
| # expose_headers: ['Link'] | |||||
| expose_headers: ['*'] | |||||
| allow_origin: [ '*' ] | |||||
| allow_headers: [ '*' ] | |||||
| max_age: 3600 | max_age: 3600 | ||||
| paths: | paths: | ||||
| '^/': null | '^/': null | ||||
| @@ -39,7 +39,7 @@ use Symfony\Component\Validator\Constraints\NotBlank; | |||||
| ) | ) | ||||
| ], | ], | ||||
| paginationItemsPerPage: 10, | paginationItemsPerPage: 10, | ||||
| security: 'is_granted("ROLE_USER")', | |||||
| // security: 'is_granted("ROLE_USER")', | |||||
| provider: EntityToDtoStateProvider::class, | provider: EntityToDtoStateProvider::class, | ||||
| processor: EntityClassDtoStateProcessor::class, | processor: EntityClassDtoStateProcessor::class, | ||||
| stateOptions: new Options(entityClass: Posting::class), | stateOptions: new Options(entityClass: Posting::class), | ||||