Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 10, 20177 yr Is it possible to post to the search form from a third party site? In other words, the keyword field and search submit button would be on a different site, then it would forward the user to the community site with the search results. So it would need to accept the POST fields. The problem I'm having is the search form uses some kind of csrfKey (hidden input) to validify that the search came from the site. Any way around this?
July 11, 20177 yr May be better using API for that search connection? Anyway if you need to post to search you can create dirty way for that. Make a forcelogin file (it will give to you authenticated session) Do a search and get an answer Close connection / store it for the other searches Be careful - you need to restrict access to your force login file by the correct web-server params (like a grant access only from special ip address ranges) and this script shoud auth as some special created standard users with default permissions. You might sure for this user can get only public search results Simple example of forcelogin script i posted recently here as another question:
July 27, 20177 yr Author Thank you for the feedback! Is there any documentation for using the API for search calls? I've looked and can't find anything specifically for that.
Archived
This topic is now archived and is closed to further replies.