Open narhzih opened 1 year ago
I tried creating a new api server which serves pdf file and used it with ngrok and it works fine for me. But the pythonanywhere URL by the user did indeed refused to connect and refused to display the content on the Document Viewer widget. So it seems like browser have certain restrictions handling contents and loading contents on an iframe, and there seems to be two issues here , the first error I am getting is
Can we ask the user check if the server is setting this header and also they can connect to my ngrok api ad check, If that works, the issue is probably with the user's server configuration.
cc: @dilippitchika
Is there an existing issue for this?
Description
I'm using Appsmith on Web so I have a local API exposed via ngrok. PDF Files served through this API can't be viewed using the Document Viewer widget. It throws an error refused to Connect error. When I tried it on PythonAnywhere, it didn't throw any error but isn't displaying anything. Other files like docx, jpg, and png from the same server worked, only pdf files aren't showing up for some reason.
Steps To Reproduce
Public Sample App
No response
Environment
Production
Issue video log
No response
Version
Cloud version