You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am experiencing an issue with the redirect plugin, http_to_https and chrome. The result is that :9443 is displayed in the url after redirect on chrome. Other browsers (firefox, brave, arc) instead properly route traffic to 443 and do not append :9443. Yes, I have tried clearing cache and running from different clients.
Edit a bit more info. 😠
This seems to be having different outcomes on different user clients. On mac clients All browsers appear to be reporting :9443, however windows and linux clients firefox and select browsers don't include the :9443
I've looked through a number of other issues like: #7011, #7172, #4942 and have found either outdated or invalid configuration options that do not resolve my issue. The https://apisix.apache.org/docs/apisix/plugins/redirect/ has a blurb in the note about the priority of the port used in http_to_https. According to it I have configured the correct first priority value.
Otherwise https behaves in an expected way. Below you can find enough information to reproduce the environment.
Modified dockerfile to include adc for deployments.
# Docker file for apisix enchanced with api/adc
FROM apache/apisix:3.10.0-debian
# Install curl
USER root
RUN apt-get update
RUN apt-get install -y curl
USER root
# Install adc https://github.com/api7/adc/
RUN curl -sL "https://run.api7.ai/adc/install" | sh -x && \
which adc && \
ls -l $(which adc) && \
echo $PATH
Note this is being deployed as a container on a ubuntu digital ocean droplet. Droplet has the following configuration/installation for newest ubuntu version.
To add to above. It is really inconsistent which clients get the redirect with and without ports it seems to be entirely related to dom.security.https_first_pbm config in chromium based products. If the value is set to false I get the undesired behaviour. Which leads me to believe the override is in pluginAttrs is effectively not doing anything.
I also noticed that 9.10.0 is out so I upgraded to it with no change in outcomes.
Description
Hello, I am experiencing an issue with the redirect plugin, http_to_https and chrome. The result is that :9443 is displayed in the url after redirect on chrome. Other browsers (firefox, brave, arc) instead properly route traffic to 443 and do not append :9443. Yes, I have tried clearing cache and running from different clients.
I've looked through a number of other issues like: #7011, #7172, #4942 and have found either outdated or invalid configuration options that do not resolve my issue. The https://apisix.apache.org/docs/apisix/plugins/redirect/ has a blurb in the note about the priority of the port used in http_to_https. According to it I have configured the correct first priority value.
Otherwise https behaves in an expected way. Below you can find enough information to reproduce the environment.
My apisix.yaml contains the following rule:
My config.yaml has the following pluginAttrs values.
My docker-compose that is used for the server environment:
Modified dockerfile to include adc for deployments.
Relevant CI/CD deployment (bitbucket) instructions:
.env contains something roughly like:
scripts/ssl-cert.sh
Any pointers or suggestion to resolve chrome redirecting to https://xxx.com:9443 from http://xxx.com would be welcome.
Environment
Note this is being deployed as a container on a ubuntu digital ocean droplet. Droplet has the following configuration/installation for newest ubuntu version.
ufw: 0.36.2
cert:
The text was updated successfully, but these errors were encountered: