Skip to content

Commit

Permalink
bug Sylius#11435 [Api]Add new-api regexp to shop firewall (Tomanhez, …
Browse files Browse the repository at this point in the history
…pamil)

This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| License         | MIT

If you would turn off new-api firewall, shop firewall catch new-api routing 

<!--
 - Bug fixes must be submitted against the 1.6 or 1.7 branches (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set
-->


Commits
-------

be06c35 Add exception to shop firewall regexp
e03a4e9 Update config/packages/security.yaml
  • Loading branch information
pamil committed May 14, 2020
2 parents 57c25dc + e03a4e9 commit afd133f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/packages/security.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
sylius.security.admin_regex: "^/admin"
sylius.security.api_regex: "^/api"
sylius.security.shop_regex: "^/(?!admin|api/.*|api$|media/.*)[^/]++"
sylius.security.shop_regex: "^/(?!admin|new-api|api/.*|api$|media/.*)[^/]++"
sylius.security.new_api_route: "/new-api"
sylius.security.new_api_regex: "^%sylius.security.new_api_route%"

Expand Down

0 comments on commit afd133f

Please sign in to comment.