This means that a "POST" fetch to the new API could successfully be made from a Worker script sourced on the domain. The upside is that Web Workers do not inherit the same-origin rules as the document that makes them. Modern Browsers now support "Web Workers," which work as isolated scripts that can be imported from any valid domain (like that complies with the document's same-origin rules. A script tag simply will not suffice for this. With the new API, however, a "POST" request is needed to send a Go query to the backend. This was so because the domain " is blocked by the live editor. Now, thanks to the new Go-powered API, fetching a program's discussion posts or a user's scratchpads is simply not possible.īefore, fetches could only be made using "JSONP" request, where the user would create a "script" tag with a special addition to the URL that would pass the API data to a JavaScript function. Over the past few years, many in the programming community have expressed remorse over the departure of the old API, which could be accessed legally from Khan Academy's HTML editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |