Access-Control-Allow-Origin Error for jquery $.ajax call

In case you’re using the latest v12 / v13 / develop branch, you can make use of the newly introduced allow_cors site config (documentation).