question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server generator: Request has been blocked; the content must be served over HTTPS.

See original GitHub issue
Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? hosted version at editor.swagger.io
Which Swagger-Editor version? hosted version at editor.swagger.io
How did you install Swagger-Editor? hosted version at editor.swagger.io
Which broswer & version? Chrome Version 60.0.3112.90 (Official Build) (64-bit)
Which operating system? MacOS Sierra

Demonstration API definition

N/A (any compiling definition)

Configuration (browser query string, constructor, config.yaml)

N/A

Expected Behavior

Should build code and download for server.

Current Behavior

Clicking the language you want the server built in generates an error in the console:

Server generator: Request has been blocked; the content must be served over HTTPS.

Possible Solution

Workaround is to select the security icon in the right of the address bar and allow the script to run manually.

Context

Trying to generate a quick simple go server api.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
owen-rpxcommented, Sep 3, 2020

Workaround is to select the security icon in the right of the address bar and allow the insecure resource. it is work for me

2reactions
shockeycommented, Dec 29, 2017

Aha - this is Swagger-Codegen’s fault!

Mixed Content: The page at ‘https://localhost:3201/’ was loaded over HTTPS, but requested an insecure resource ‘http://generator.swagger.io/api/gen/download/9072771b-127c-4d76-9046-a9e7216f69fc’. This request has been blocked; the content must be served over HTTPS.

The generator is sending the user agent to an http download URL, even if the initial request was over HTTPS. Clearly, browsers don’t allow accessing HTTP content from an HTTPS page, so the download fails.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mixed Error: This request has been blocked; the content must ...
Root cause for the issue is http and HTTPS mixed content site is served as http and netlify with https. From site settings...
Read more >
Web API Error - This request has been blocked the content ...
We have deployed the api on azure and are trying to consume in our ... This request has been blocked the content must...
Read more >
the content must be served over HTTPS' error in Chrome
There is a error like, "This request has been blocked; the content must be served over HTTPS" in the Console on Chrome developer...
Read more >
"Mixed Content" errors from DigitalOcean install - Ghost Forum
This request has been blocked; the content must be served over HTTPS. o @ api.js: ... at api.js:345:22 at u (runtime.js:63:40) at Generator....
Read more >
How to fix a website with blocked mixed content | Mendix Forum
This request has been blocked; the content must be served over HTTPS." Did I do something wrong? Any idea or suggestion? Thank you....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found