ajax - any config for rundeck to cross-domian api call from other domain -
i'm using jquery ajax , call rest api of rundeck
like
$.ajax( { url:"{rundeck_url}/api/1/job/5?authtoken=d4cuk8dd5dp4sovsr7p9uund5dnvu3do" } );
but error brower doing xmlhttprequest different domain
xmlhttprequest cannot load {rundeck_url}/api/1/job/5?authtoken=d4cuk8dd5dp4sovsr7p9uund5dnvu3do. no 'access-control-allow-origin' header present on requested resource. origin '{site_url}' therefore not allowed access.
is there config set header cross-origin in rundeck ?
thanks
env:
rundeck:1.4.2 api reference version: 3
Comments
Post a Comment