-
Hi all, as said in the title already, all created short links to any random test pages I own result in a connection refused error. I upgraded an YOURLS installation from 1.8.1 to latest. It runs as a sub domain like 'https://short.fancydomainhere.de'. I for example try to shorten an public deep link to my Nextcloud installation ('https://cloud.fancydomainhere.de/verydeeplink') on the same server. YOURLS created a short link sucessfully, but when I try to use this short link an error message says 'cloud.fancydomainhere.de refuses connection'. I did some frame/iframe examination with chrome dev tools and found a maybe more helpful description:
Here are the default headers of the web server:
I'm sure I misconfigured or forgot something. Does anyone have an idea? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The error you found in Dev Tools explains where to look. If you are using some YOURLS plugin that displays the remote page inside a frame (e.g. the built-in Toolbar one or a derivative), that would cause this error. I don't think this is solvable through YOURLS; the page being framed has to allow that usage in its Content Security Policy (CSP) header and/or CORS configuration, which is well outside the scope of what YOURLS can control. This is probably coming from the Nextcloud side, so I took the liberty of finding what looks like a relatively simple, related forum thread: https://help.nextcloud.com/t/implement-iframe-on-nextcloud-24/142216/2 |
Beta Was this translation helpful? Give feedback.
The error you found in Dev Tools explains where to look. If you are using some YOURLS plugin that displays the remote page inside a frame (e.g. the built-in Toolbar one or a derivative), that would cause this error.
I don't think this is solvable through YOURLS; the page being framed has to allow that usage in its Content Security Policy (CSP) header and/or CORS configuration, which is well outside the scope of what YOURLS can control.
This is probably coming from the Nextcloud side, so I took the liberty of finding what looks like a relatively simple, related forum thread: https://help.nextcloud.com/t/implement-iframe-on-nextcloud-24/142216/2