Hi
im using Hugo Learn theme and in my config.toml file i’ve put the following lines of code
baseURL = "https://domain.com/"
languageCode = "en-us"
title = "Documentation"
theme = "learn"
[params]
# Change default color scheme with a variant one. Can be "red", "blue", "green".
themeVariant = "mine"
[outputs]
home = [ "HTML", "RSS", "JSON"]
everything works fine except the search functionality. It works fine on localhost:1313 but when i run the command “hugo -D” and upload the whole public folder on my server the search functionality isnt working
1st error : Access to XMLHttpRequest at ‘https:// domain.com/docs/index.json’ from origin ‘http:// domain.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
2nd error : Error getting Hugo index file: error,
the domain is https but that particular folder loads by default without https if i put in front of the domain https:// www. it will work fine
@patriotaki your issue is such you’ll need to follow the steps at Requesting Help and share a project with us. You are trying to hide the domain of your site from this discussion, but if your issue is a slight typo of the domain or some other issue, we’ll never figure it out talking like this. Please follow the advice in that thread.