I'm trying to embed a Class maker test in to my angular website.
Here the script tag i got from Class maker
<script src="https://www.classmarker.com/public/js/embed-classmarker-1.0.0.js?quiz=4p365d69cbe3a608" data-quiz="4p365d69cbe3a608" data-width="700" data-height="800" ></script>
i paste it in html but it didn't work. Then i try to append this using a function by calling it in ngOnInit.
when i append it to document.body it loads the exam on my website
but when i try to append the script like this
this.renderer.appendChild(this.elementRef.nativeElement, script);
throws me unauthorized error. when i check the network tab, I can see below error message
Can you please help me with this ?
I tried to append the script in to my component.

