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

webpack dev: Change to API_PROXY instead of API_PROXY_HOST & API_PROXY_PORT #5381

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Dec 18, 2024

Change to API_PROXY to allow running against https backends.

and ignore self-signed https certificates,
and spoof the Origin, Host & Referer headers correctly.


API_PROXY=https://1.2.3.4 npm run start-standalone

should be all that's needed to connect to a remote backend.

Cc @acruzgon

… API_PROXY_PORT

to allow running against https backends

and ignore self-signed https certificates,
and spoof the Origin, Host & Referer headers correctly
@himdel himdel changed the title Change to API_PROXY=http://localhost:5001 instead of API_PROXY_HOST & API_PROXY_PORT webpack dev: Change to API_PROXY instead of API_PROXY_HOST & API_PROXY_PORT Dec 18, 2024
@acruzgon acruzgon merged commit 7b57440 into ansible:master Jan 2, 2025
11 of 14 checks passed
@himdel himdel added the backport-4.9 This PR should be backported to stable-4.9 (2.4) label Jan 3, 2025

This comment was marked as outdated.

himdel added a commit to himdel/ansible-hub-ui that referenced this pull request Jan 3, 2025
… API_PROXY_PORT (ansible#5381)

to allow running against https backends

and ignore self-signed https certificates,
and spoof the Origin, Host & Referer headers correctly

(cherry picked from commit 7b57440)
@himdel himdel deleted the proxy-target branch January 3, 2025 16:33
acruzgon pushed a commit that referenced this pull request Jan 3, 2025
…ST & API_PROXY_PORT (#5381) (#5404)

* Change to API_PROXY=http://localhost:5001 instead of API_PROXY_HOST & API_PROXY_PORT (#5381)

to allow running against https backends

and ignore self-signed https certificates,
and spoof the Origin, Host & Referer headers correctly

(cherry picked from commit 7b57440)

* fixup webpack config
@github-actions github-actions bot added the backported-4.9 This PR has been backported to stable-4.9 (2.4) label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.9 This PR should be backported to stable-4.9 (2.4) backported-4.9 This PR has been backported to stable-4.9 (2.4)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants