Skip to content

Commit 3628413

Browse files
authored
Merge pull request #96321 from mikebudzynski/apim-portal-cors-options
APIM: portal and CORS for OPTIONS
2 parents 06c2b73 + b2924aa commit 3628413

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/api-management/api-management-howto-developer-portal.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ The interactive console makes a client-side API request from the browser. You ca
139139
</cors>
140140
```
141141

142+
> [!NOTE]
143+
>
144+
> If you apply the CORS policy in the Product scope, instead of the API(s) scope, and your API uses subscription key authentication through a header, your console won't work.
145+
>
146+
> The browser automatically issues an OPTIONS HTTP request, which doesn’t contain a header with the subscription key. Because of the missing subscription key, API Management can't associate the OPTIONS call with a Product, so it can’t apply the CORS policy.
147+
>
148+
> As a workaround you can pass the subscription key in a query parameter.
149+
142150
## Next steps
143151

144152
Learn more about the new developer portal:

0 commit comments

Comments
 (0)