app-search-javascript icon indicating copy to clipboard operation
app-search-javascript copied to clipboard

CORS on https

Open johnsonfamily1234 opened this issue 5 years ago • 2 comments

Hello and thanks in advance for any information you might share.

I have a repo built around this which was working fine when going from http to http API Endpoint... but when deployed into https it's run into CORS issues. Have tried pretty much everything at this point. Figured I'd check in and see if anyone can sanity check the concept in general - is there any reason why this wouldn't work over https? Should I be thinking about this more as a "public key" search client?

I don't want to get too deep into sharing code yet as I'd have to redact but if anyone can sanity check me on whether it's an appropriate use of this for https, I'd appreciate it.

Thank you!

johnsonfamily1234 avatar Dec 26 '20 23:12 johnsonfamily1234

Did you make any progress on this?

Ebsan avatar Aug 12 '21 19:08 Ebsan

I'm still working on this but wanted to post some findings. The CORS errors may be a red herring and the issue might actually have to do with your cert configurations and if your browser trusts the root certificate.

Try with different browsers, do you get the same error on each browser? Also, do you have the root certificate installed correctly (for Edge and Chrome it should be installed on your Windows Cert Store, and for Firefox you'll have to install it to the browser).

Ebsan avatar Sep 28 '21 16:09 Ebsan