Getting 500 internal server error

Hi, I am new one to create an API. after following following tutorial

i use same code except domain name i run the script on live server. but i am getting the following error.
Blocked script execution in ‘’ because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set.
Thanks in advance.