Azure / Azure/api-management-developer-portal

Developer portal in "try mode" does not handle redirect policy correctly

Open
#2,701 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
545
Forks
360
PR merge metrics
No merged PRs in 30d

Description

## Bug description

Developer portal in "try mode" does not handle redirect policy correctly

## Reproduction steps

1. Create API
2. add policy that will do redirect via: ```


https://xxxxx.blob.core.windows.net/latest/yyyy.blob

```
5. go to developer portal and do "try it"
6. See error## unable to complete the request ![Image](https://github.com/user-attachments/assets/3970505e-fd83-4375-996e-31aceaf27530)

A clear and concise description of what you expected to happen.

## Is self-hosted portal?
Yes and No

## Additional context

This scenario is useful for creating an API on top of large blob objects (tens or hundreds of megabytes, or even gigabytes). The API management portal or API won’t be able to proxy such large files due to their size, but a redirect mechanism can handle it. The API policy generates a SAS URL to the blob storage and redirects the client. This works perfectly when tested via curl or even in the browser, but it fails in the developer portal. In the network section, you can see that the redirect occurs, but then it gets canceled.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.