"Edit online" links in webhelp pages are blocked

Having trouble installing Oxygen XML WebHelp? Got a bug to report? Post it all here.
zuza
Posts: 24
Joined: Fri May 13, 2016 5:34 pm

"Edit online" links in webhelp pages are blocked

Post by zuza »

Hello,

Not sure this the best place to ask this question.... but here goes.

We want to migrate our docs to DITA use the publishing engine to generate WebHelp with "edit online" links that would open in Web Author. We are trialling this at the moment, so I am trying to set things up for engineers to be able to play with Web Author.

When I generate webhelp on my local machine, everything works as expected.

We have a Jenkins job that runs on a linux machine and generates the webhelp, which is then available as an artifact of the job and I can browse through it. There are several problems with this webhelp, probably due to server setup.... the Edit online link doesn't open, the fonts are wrong... When I inspect the page, I see the following types of errors in the Console:
  • "Blocked script execution in '<URL>' because the document's frame is sandboxed and the 'allow-scripts' permission is not set."
  • "Blocked opening <web author url> in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set."
  • "Refused to load the font '<URL>' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback."
The command line is

Code: Select all

dita -i flowers.ditamap -f webhelp-responsive -o out -Deditlink.ditamap.edit.url="<URL>"
Do you happen to know if we need to change any settings on the linux machine, and what would those be? Or anything else that would help?

Many thanks,
Ozana
zuza
Posts: 24
Joined: Fri May 13, 2016 5:34 pm

Re: "Edit online" links in webhelp pages are blocked

Post by zuza »

Ok, apparently it's a Jenkins security configuration... I had no idea, it all worked in Jenkins at my previous job :D
Post Reply