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

When I access tapir through the domain name, I cannot create the deployKey. #373

Closed
WeiMengXS opened this issue Jan 8, 2024 · 1 comment

Comments

@WeiMengXS
Copy link

WeiMengXS commented Jan 8, 2024

When I access tapir through the domain name, I cannot create the deployKey, but I can create it directly through ip+port.
An error occurred as a cross-domain request was rejected.

image image
@akuzminsky
Copy link

The same error happens when Tapir runs on a container in AWS ECS behind load balancer.
An HTTP sessions looks like this:

POST /management/deploykey/infrahouse-cloud-init-aws HTTP/1.1
X-Forwarded-For: 23.123.142.164
X-Forwarded-Proto: https
X-Forwarded-Port: 443
Host: registry.infrahouse.com
X-Amzn-Trace-Id: Root=1-65e4db15-5b1e54bb5c7bc9b33898a19a
Content-Length: 0
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0
accept: */*
accept-language: en-US,en;q=0.5
accept-encoding: gzip, deflate, br
referer: https://registry.infrahouse.com/management
origin: https://registry.infrahouse.com
dnt: 1
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin
HTTP/1.1 403 CORS Rejected - Invalid origin
content-length: 0

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

2 participants