is there a config available in AEM to allow the marketo form js file to be loaded on the dispatcher.
There are different way to handle this.
What is the path or client library you are expecting to be served from your AEM publish? Making sure your filter allows this path in the dispatcher.any will definitely allow the JS or CSS resource to be accessible.
You can use AEM DAM