Skip to main content
Participant
May 3, 2022
Question

CEP 11 extension development: redirects blocked/not loading script tags properly

  • May 3, 2022
  • 0 replies
  • 216 views

I am working on a CEP extension that redirects to a local index.html file in the extension like this:

window.location.href = "file://C:/Program Files/Common Files/Adobe/CEP/extensions/Sample_Extension/index.html"

This was working fine prior to CEP 11. After upgrading to CEP 11 this redirect is now blocked. Instead of the home page, a user is redirected to "about:blank#blocked"

 

I was able to resolve the blocked redirect with the following:

let result = window.cep.fs.readFile("html_url");
window.location.href = result.data ;

 

However, although the redirect is working, it is unable to load the script tags within that html file. Is there a way to redirect and also load scripts that are located in the same directory?

This topic has been closed for replies.