Can you confirm that the microservice not to be exposed on web but only api gateway?
If you run your microservices locally, they won't be exposed to the network.
If I'm inside the network my swagger definition works fine but if I'm outside it doesn't work but API routing works fine inside and outside the network.
Yes, the swagger will send a request to the backend when you switch the API definition, but the client(browser) doesn't know localhost, so it can't work with your case.
Hi,
Yes, it's.
https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice#updating-administration-microservice
You can ignore the section of Updating Administration Microservice when you add a new service because the dynamic permission is working.
Could you provide the steps to reproduce? thanks.
Can you share the error logs?
This seems to solve the problem, but now the files are loaded twice. First in the global bundle and then again separately as CSS files.
How should I do this correctly?
Hi, We use leptonx-blazor-compatibility.js internally to load styles dynamically. you can create a BundleContributor to remove it.
public class MyScriptContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.RemoveAll(x => x.Contains("leptonx-blazor-compatibility.js"));
}
}
Configure<AbpBundlingOptions>(options =>
{
options.StyleBundles.Configure(
BlazorLeptonXThemeBundles.Styles.Global,
bundle =>
{
bundle.AddContributors(typeof(MyScriptContributor));
}
);
});
Hi,
You can try this:
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(FileDescriptorController), IncludeSelf = true)]
[AllowAnonymous]
public class MyFileDescriptorController : FileDescriptorController
{
public MyFileDescriptorController(IFileDescriptorAppService fileDescriptorAppService) : base(fileDescriptorAppService)
{
}
[AllowAnonymous]
[HttpPost]
[Route("upload")]
public override Task CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
{
return FileDescriptorAppService.CreateAsync(directoryId, inputWithStream);
}
}
Document: https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#example-overriding-a-controller
Hi @AndrewT
The answer is still