M
M
magary42016-06-14 15:38:32
symfony
magary4, 2016-06-14 15:38:32

How to write such regex for symfony security?

firewalls:
   ezpublish_front:
            pattern: ^/
            anonymous: ~
            ezpublish_rest_session: ~
            form_login:
                require_previous_session: false
            logout: ~

ezpublish_front - necessary for the system to work and work correctly
, there is a url /api/ezp/v2/search for which you need to allow a POST type request (GET works, but POST gives 401), I
add below
ezpublish_rest:
    pattern: ^/api/ezp/v2/search
    security: false

does not help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question