Tyk custom js injection using the API is throwing 404 error in developer portal console.
When custom js is injected using the API, it is giving a success response.
curl -X POST www.tyk-test.com:3000/api/portal/js \
-H "Authorization:{DASHBOARD_API_KEY}" \
-d '{"page_js": "console.log(1)"}'
But when developer portal is accessed it is throwing 404 error while loading the custom.js
When examined, I found that it is an issue in the script tag’s src path. The src is /portal/custom/custom.js where as it has to be /custom/custom.js