This request has been blocked; the content must be served over HTTPS

Hi! My XWiki is deploy with https use docker image(xwiki:10.4-mysql-tomcat). And When I “save and view” a page , it is error. There are the problem .
I submit a save request success , and then it request to the jobstatus, it is a https request (example : “https://xwiki.my.com/rest/jobstatus/refactoring/create/1544529172184-582?media=json”), look at the screenshot:
image
but the response’s links is a http url(example : “http://xwiki.my.com/rest/jobstatus/refactoring/create/1544529172184-582”), look at the screenshot:
image
I also test on XWiki SAS. And it response https
image
So I think it is my XWiki config problem. How to fix it.
Oh! I have config the “xwiki.url.protocol=https” , but it do not work .
image

Any one help me :joy:

hey wuguokai,
Had the same issue and it was because I was running the server behind a reverse proxy - in order for it to work correctly, you need so specify some settings in your server.xml for tomcat:
I found the 8080 connector, and added these to the bottom of that configuration
proxyName=“wiki.example.com
proxyPort=“443”
scheme=“https”/>
After doing so, I did not receive the errors you indicated, as well as the other issues with “failed to lock the page”.

1 Like

Hi, could you post the complete snipped with the existing code and the code you added?
Thanks !!!

EDIT: got it - the double quotes got changed when doing copy+paste. After retyping it in the terminal it is working.