401 error when publishing a blog post in WriteFreely

My YunoHost server

Hardware: VPS bought online
YunoHost version: 3.8.4.8
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I installed WriteFreely and logged in as the admin user. I can login and I can draft a blog post, but publishing it gives a 401 error. This is Chromium 81.0.4044.138.

There are also several errors in the browser’s console:

The Content Security Policy 'default-src https: data: 'unsafe-inline' 'unsafe-eval'' was delivered in report-only mode, but does not specify a 'report-uri'; the policy will have no effect. Please either add a 'report-uri' directive, or deliver the policy via the 'Content-Security-Policy' header.
admin:17 GET https://blog.mydomain.com/ynhtheme/custom_portal.js net::ERR_ABORTED 404
admin:1 Refused to apply style from 'https://blog.mydomain.com/ynhtheme/custom_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
portal.html:1 The Content Security Policy 'default-src https: data: 'unsafe-inline' 'unsafe-eval'' was delivered in report-only mode, but does not specify a 'report-uri'; the policy will have no effect. Please either add a 'report-uri' directive, or deliver the policy via the 'Content-Security-Policy' header.
portal.html:35 GET https://blog.mydomain.com/ynhtheme/custom_portal.js net::ERR_ABORTED 404
portal.html:1 Refused to apply style from 'https://blog.mydomain.com/ynhtheme/custom_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

c.f. https://github.com/YunoHost-Apps/writefreely_ynh/issues/73

This is a stupid issue … current workaround is weird but consists in making sure that the app is public and that you use it when being logged out of the SSO/user portal of Yunohost. We will eventually fix this …

Yes, logging out and installing as a public site works.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.