Could not connect to this Shlink server (using HTTPS) #1888
-
Shlink version3.6.4 PHP versionDocker How do you serve ShlinkOther (explain in summary) Database engineMariaDB Database version10.11.5 Current behaviorWhen I try to add my Shlink server into my local Shlink Web Client app, it shows the following error in the web console:
Let's explain how I set up all the things... It's public domain is: https://links.my-site.com (just an example) Shlink Web Client It's local domain: https://shlink-wc.my-apps.lan (just an example) So, both Shlink and Shlink Web Client services are under HTTPS. Expected behaviorThe Shlink Web Client instance should connect to the Shlink public instance. How to reproduceTry to connect to it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The error means that the browser does not consider the server and client certificates equally secure. By the client domain name, I'm going to assume you used a self-signed certificate. If that's the case, then that is the problem. Browsers will allow typically insecure scenarios only when localhost is involved, so running the web client locally would work, even without https. |
Beta Was this translation helpful? Give feedback.
Ah, I actually miss-read the error.
Yes, cloudflare is removing the CORS headers generated by Shlink. You have to find the way to tell cloudflare to preserve them.