I'm developing a add-on app that can dynamically change confluence cloud pages' background by different conditions.(insert a background image into cloud confluence pages ).
I have investigated that I can't use a Web Resource module to introduce JavaScript files to run on pages,So I want to use Macro Modules or something else to insert iframe and run its JavaScript Code to change page background , But Because of Same Origin Policy I cannot access and affect it's parent DOM.
What am I supposed to do?
Thank you