Pregunta

I tried to call rest api of Identity server. It's working perfectly from Curl command. But when trying from jquery-ajax it shows error like

OPTIONS http://abcd.server:8281/search No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. jquery.js:8416 XMLHttpRequest cannot load http://abcd.server:8281/search. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access

Any help

¿Fue útil?

Solución

You need to specify the right headers (allow-methods:options,get,put,etc,allow-origin) on the server side same issue solved here

Otros consejos

I guess this is a common error related ajax. As mentioned in here. Did you see any error in WSO2IS logs or console

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top