Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The front end is saying "failed to load PDF file". #56

Open
jameszhucigna opened this issue Oct 14, 2023 · 3 comments
Open

The front end is saying "failed to load PDF file". #56

jameszhucigna opened this issue Oct 14, 2023 · 3 comments

Comments

@jameszhucigna
Copy link

jameszhucigna commented Oct 14, 2023

The application seems to be working fine and can do the right Q&As like below. However the PDF control doesn't seem to load, and the error message from the console is:

instrument.js:142  Mixed Content: The page at 'https://special-doodle-q7qp4969w9grc9jpg-3000.app.github.dev/conversation/cbcef1a5-bbd4-4582-9d1f-a7012979e874' was loaded over HTTPS, but requested an insecure resource 'http://llama-app-web-assets-local.s3-website.localhost.localstack.cloud:4566/sec-edgar-filings/0001018724/10-K/0001018724-23-000004/filing-details.pdf'. This request has been blocked; the content must be served over HTTPS.

any ideas?

@jameszhucigna
Copy link
Author

I've changed to CDN_BASE_URL=https://llama-app-web-assets-local.s3-website.localhost.localstack.cloud:4566 but seems not helpful. not sure why...

@sourabhdesai
Copy link
Contributor

sourabhdesai commented Oct 17, 2023

@jameszhucigna this is likely due to CORS blocking the request. You may have better luck connecting to the Codespace container through a local installation of VS code so that it actually servers the servers over localhost. I still need to look into solutions to getting this working across all environments. You can also try using a chrome extension like CORS Unblock as a quick workaround for now. I'd only enable this extension when actively developing btw, and otherwise disable it.

@Curiosity007
Copy link

I am getting the same error when I am running it in cloud. How do I allow CORS and where are the areas which I need to change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants