Knowledge Search via APIs?

mharrison
Kilo Contributor

Hello everyone. I'm new to the ServiceNow platform (our company signed up for Express a while back) so please forgive me if this is the wrong forum. I've been searching the documentation but haven't found a relevant article. We have an exciting web app and we'd like to add the ability to search a servicenow knowledge base that we've setup. Ideally, we'd like to have a search box that would allow us to handle autocompleting searches as the user's typing. Then when they select select a knowledge article (Some would have pdf attachments) we'd like to navigate to that article. Are there articles or suggestions on the best way to accomplish this? Is there a component that we should use?

A couple of other questions:

CORS: I attempted to setup a search via the Rest API but I'm running into CORS issues when I test locally. Is there an easy way to disable that?

User Management: Is there a way to allow anonymous searching?

Thank you!

2 REPLIES 2

hmartind
Kilo Expert

Hello,



Hope this helps with the CORS issue,



"You can disable CORS support for an instance by setting the property glide.rest.cors.enabled to false. When false, no CORS evaluation is performed on incoming REST requests. This property is true by default."



REST API CORS support



Cheers,


Hector.


hmartind
Kilo Expert

Also, I guess you already know this OOB feature, but just in case it helps:



https://wiki.servicenow.com/index.php?title=Searching_Knowledge#Searching_Knowledge&gsc.tab=0