/
How do I resolve authorization error?

This Confluence instance is now read-only, please head over to the Algolia Confluence instance for the same more up-to-date information

How do I resolve authorization error?

Problem

After integrating a search UI on your website or application, you get an authorization error:

Authorization for this request failed. Check your credentials.

Solution

When you create a new collection (website or other), Search.io’s query API will allow any requests coming from domains that are listed under the “Domains“ section.

  1. Note the domain from which you are making the search request (e.g. www.website.com, or dev.website.com).

  2. Go to the Domains section, and see which domains are listed and have “Search from domain“ toggled on.

  3. If your domain is listed, but the “Search from domain“ is toggled off, then turn this on.

  4. If your domain is not listed, click on “Add Domain” and add the domain you want to allow. You can uncheck the “Crawling“ off if you don’t want to crawl the content of the website.

This might take 10-20 minutes to propagate, so when you add a new domain for authorization, please wait for about 20 minutes.


Documentation

Configuring Domains

Related articles

 

 

Related content

Why do queries gets auto-corrected to a different query?
Why do queries gets auto-corrected to a different query?
Read with this
How can I test search in a password-protected staging environment?
How can I test search in a password-protected staging environment?
Read with this
How can I test search in staging or development environments?
How can I test search in staging or development environments?
Read with this
Why can’t I see the invites that I sent to team members in my console?
Why can’t I see the invites that I sent to team members in my console?
Read with this
Can I use my Search.io account with multiple domains, sites, or applications?
Can I use my Search.io account with multiple domains, sites, or applications?
Read with this
Why are there no records or pages missing from my website collections index? <test>
Why are there no records or pages missing from my website collections index? <test>
Read with this