8000 fix: mixed-content for the SwaggerUI by giograno · Pull Request #11607 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

fix: mixed-content for the SwaggerUI #11607

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

Merged
merged 1 commit into from
Oct 1, 2024
Merged

fix: mixed-content for the SwaggerUI #11607

merged 1 commit into from
Oct 1, 2024

Conversation

giograno
Copy link
Member
@giograno giograno commented Sep 30, 2024

Motivation

With #11509 we started serving the SwaggerUI within LocalStack.
The Web UI is initialized with an OpenAPI spec, also served via LocalStack. However, the resolved URL always had a http protocol. This caused a mix-content issue (see below) when accessing the swagger URL (localhost.localstack.cloud:4566/_localstack/swagger) with https.

See the image below:

image

Changes

  • We now build the spec URL with the correct protocol based on the protocol of the request itself.

@giograno giograno added the semver: patch Non-breaking changes which can be included in patch releases label Sep 30, 2024
@giograno giograno added this to the 3.8 milestone Sep 30, 2024
@giograno giograno requested a review from alexrashed September 30, 2024 21:07
Copy link

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   3m 33s ⏱️
423 tests 369 ✅  54 💤 0 ❌
846 runs  738 ✅ 108 💤 0 ❌

Results for commit 027d969.

@giograno giograno marked this pull request as ready for review September 30, 2024 21:26
@giograno giograno requested a review from thrau as a code owner September 30, 2024 21:26
@giograno giograno removed the request for review from thrau September 30, 2024 21:26
Copy link

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 37m 34s ⏱️ +9s
3 452 tests ±0  3 049 ✅ ±0  403 💤 ±0  0 ❌ ±0 
3 454 runs  ±0  3 049 ✅ ±0  405 💤 ±0  0 ❌ ±0 

Results for commit 027d969. ± Comparison against base commit f24fe3d.

Copy link
Member
@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for jumping on this! Looks good! 🚀

@giograno giograno merged commit 759cce5 into master Oct 1, 2024
48 checks passed
@giograno giograno deleted the fix-mixed-content branch October 1, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0