Skip to content

Commit 3887666

Browse files
committed
fix: Move AM-SaveReq to beginning in the Mock API proxy template
The AM policy was being skipped when responding to a CORS OPTIONS request.
1 parent f9ffc07 commit 3887666

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/common/mock_apiproxy_template/apiproxy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ ProxyEndpoints:
136136
PreFlow:
137137
.name: PreFlow
138138
Request:
139-
- Step:
140-
Name: CORS-Allow
141139
- Step:
142140
Name: AM-SaveReq
141+
- Step:
142+
Name: CORS-Allow
143143
- Step:
144144
Condition: request.header.mock-validate-request != "false"
145145
Name: OAS-Validate
-2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)