This is a reproduction repository for errors encountered whilst integrating the Stripe.js SDK with SvelteKit.
- Install dependencies:
npm install
# or
pnpm install
- Start the development server:
npm run dev
# or
pnpm dev
- Open your browser and navigate to:
http://localhost:5173
# or as shown in the terminal
The following errors appear in Chrome's console when attempting to connect to Stripe's services:
POST https://r.stripe.com/b net::ERR_CONNECTION_REFUSED
r.stripe.com/b:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
r.stripe.com/b:1 Failed to load resource: net::ERR_CONNECTION_REFUSED