Base solution for your next web application
Open Closed

Not loading PDF from server #9816


User avatar
0
zakirhossainva created

Version: v8.1.0 Product type: Angular (ASP.NET CORE & Angular) Product framework type: .NET Core 3.1

dear concern, we are developing an asp.net core and angular application by your boilerplate, But we have some problem when we upload PDF files It has uploaded successfully but it is not view,
we can not load PDF files from the server. we want to view PDF files in the model. We have attached 2 Error Screenshot images. Please help me to solve the problem.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    zony created
    Support Team

    Hi zakirhossainva, It seems that static files do not return the Access-Control-Allow-Origin header. You can try the method of this article: https://www.bytefish.de/blog/aspnetcore_static_files_cors.html

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)