Server generator: Request has been blocked; the content must be served over HTTPS.
See original GitHub issueQ | 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:
- Created 6 years ago
- Reactions:7
- Comments:18 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Workaround is to select the security icon in the right of the address bar and allow the insecure resource. it is work for me
Aha - this is Swagger-Codegen’s fault!
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.