Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CORS in HTTP2 Async controller #48

Open
ck-singh opened this issue Apr 26, 2023 · 0 comments
Open

Support for CORS in HTTP2 Async controller #48

ck-singh opened this issue Apr 26, 2023 · 0 comments

Comments

@ck-singh
Copy link

The HTTP2 Async controller is great to simulate HTTP2 behavior similar to browsers. However, it becomes difficult to accurately simulate CORS traffic where the browser automatically triggers a preflight OPTIONS request before making a call to actual API endpoint.
We do not currently have a way to correctly time the Preflight call and actual API call so that these are executed sequentially even when started in parallel (as shown in screenshot below) and this can be best simulated by using 2 different async controllers in sequence. The approach of using multiple async controllers in sequence to simulate CORS correctly becomes complicated and unrealistic when the number of such calls are large and we have several other HTTP2 calls triggered in parallel at the same time.

I have used a public website to show the lineup of Preflight and actual API call in action below-

CORS-Example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant