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

Insecure content during the checkout process #4

Open
BouarfaMahi opened this issue Jan 3, 2024 · 0 comments
Open

Insecure content during the checkout process #4

BouarfaMahi opened this issue Jan 3, 2024 · 0 comments

Comments

@BouarfaMahi
Copy link

BouarfaMahi commented Jan 3, 2024

Hey, a few days ago, I encountered an issue during the checkout process of the Flask-based e-commerce app integrated with Stripe. I received the following error message in the Chrome Dev Tools:

'Mixed Content: The page at 'https://..../products/featured/' was loaded over HTTPS, but requested an insecure resource 'http://..../create-checkout-session/featured/'. This request has been blocked; the content must be served over HTTPS.'

I resolved this problem by adding the following meta tag to my HTML:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

It's worth noting that I am using an HTTPS URL for the SERVER_ADDRESS variable. I do not understand what is happening.

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

1 participant