Closed
Description
openedon Mar 1, 2022
Description
Carrying out research on each of the API microservices and seeing what the installation process is for each of them, I have noticed a path called static
which is located in /static
(trying to understand what content it loads).
I tried to go to this address via "api.openverse.engineering/static" and found that the page redirects to https://api.openverse.engineering:8080/static/
Reproduction
Open your terminal and run the command:
curl --location -I https://api.openverse.engineering/static
You'll get something like this:
HTTP/2 301
date: Tue, 01 Mar 2022 21:59:03 GMT
content-type: text/html
location: http://api.openverse.engineering:8080/static/
cache-control: max-age=14400
cf-cache-status: MISS
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
strict-transport-security: max-age=15552000; includeSubDomains; preload
x-content-type-options: nosniff
server: cloudflare
cf-ray: 6e552854fb8fef0a-MIA
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
HTTP/1.1 301 Moved Permanently
Date: Tue, 01 Mar 2022 21:59:03 GMT
Connection: keep-alive
Cache-Control: max-age=3600
Expires: Tue, 01 Mar 2022 22:59:03 GMT
Location: https://api.openverse.engineering/static/
X-Content-Type-Options: nosniff
Server: cloudflare
CF-RAY: 6e552856c8249aba-MIA
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
HTTP/2 403
date: Tue, 01 Mar 2022 21:59:03 GMT
content-type: text/html; charset=utf-8
cf-cache-status: BYPASS
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
strict-transport-security: max-age=15552000; includeSubDomains; preload
x-content-type-options: nosniff
server: cloudflare
cf-ray: 6e5528574d51ef0a-MIA
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
You can noticed at the first stage, the page redirects via status code 301 to location: http://api.openverse.engineering:8080/static/
Expectation
The content should load without the port 8080?
EDITED: I can confirm the path /media
has the same behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done