Content Delivery API - Friendly URL returns Resource not found

Vote:
 

Hi

I currently have an issue whereby when trying to call CD-Api with a friendly URL as shows below i get the error resource not found.

I have installed the core modules for CD-API, the client does not use find and no authentication required.

I have followed the blog posts several times to see if they work, but no luck

https://world.episerver.com/forum/developer-forum/Addons/Thread-Container/2019/5/headless-api---404-not-found/

protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
log4net.Config.XmlConfigurator.Configure();
MvcHandler.DisableMvcResponseHeader = true;
ServiceLocator.Current.GetInstance<RoutingOptions>().UseTrailingSlash = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11;
}

The strange thing is this worked perfectly in Alloy Site

Any help would be much appreciated.

#218989
Mar 26, 2020 22:44
Vote:
 

Hi Mounir

If you miss the "Accept-Language" header from your request, it would cause 404 error.

Check my blog post to see if anything can help https://javafun.github.io/episerver-headlessjs-getting-start-part-1-setup/

#219008
Edited, Mar 27, 2020 1:00
Vote:
 

Hi Vincent

Thanks, yea I also tried with language, same issue.

#219022
Mar 27, 2020 10:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.