0

I want to make an html program in Khan Academy that uses http requests to get an html file from Khan Academy. I've done this offline but I need to do it in Khan Academy. CSP is Content-Security-Policy

The problem is I don't know how to set headers in CSP, on another server. How can you make it work so the html project can get html5 files from Khan Academy and put them into a string?

Don't just tell me the answer, show me what a working CSP header/example looks like in that program. Then copy and paste the code from this link: https://www.khanacademy.org/computer-programming/ka-download-test/4522352506732544 and show me what a working example looks like.

Edit: What I meant was go to this link: https://www.khanacademy.org/computer-programming/ka-download-test/4522352506732544. Then go into the top of the html and change line 5, until it works or you see no more errors in the debugger's console.

0 Answers0