Comments (6)
Not sure to fully understand your issue. The SSL config needs two keys:
disabled
(boolean): Iftrue
, this middleware will allow all requests through.trustProxy
(boolean): Iftrue
, trust theX-Forwarded-Proto
header.
To enable SSL your config should look like this:
{
"ssl": {
"disabled": false,
"trustProxy": false
}
}
from strapi.
You've hardcoded the protocol to http so on an https site everything breaks.
I've fixed it for myself 'hacking' by changing admin/frontend.js line 1775 to Config.backendUrl = '';
Mixed Content: The page at 'https://strapi-1-5-gregbenner.c9users.io/admin/#!/strapi/explorer/post/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://strapi-1-5-gregbenner.c9users.io/:8080/admin/explorer/user?limit=10&skip=0&where=%7B%7D'. This request has been blocked;
This is saying hey you are on https site but you tried to use an http request I'm a browser and I don't like that so you can't do it. :)
from strapi.
Good catch @gregbenner, we are working on it.
from strapi.
We just fixed it : strapi/strapi-generate-admin@26626fb
It will be published in strapi-generate-admin
v1.5.2
.
Thanks again for your feedback @gregbenner
from strapi.
@gregbenner: can you try the solution of @pierreburgy and give us your feedback please?
from strapi.
looks like a solve to get the current host url, @pierreburgy
could also leave it as '/' but should work either way.
from strapi.
Related Issues (20)
- bulk publish only works for the first selected item
- Error on installation...
- Developing locally pointing to production database dropped data HOT 3
- Snip HOT 3
- in Uid field the available option is on top of the field value when we have a large uid value HOT 1
- Strapi transfer does not work with aws waf standard rules HOT 2
- [Strapi 5 Beta] Maximum call stack size exceeded error when using a self-referencing relationship HOT 8
- Unable to Publish Single Type in Non-Default Locale if It's Not Created in Default Locale HOT 2
- NOTICE: Formidable Vulnerability is NOT valid HOT 1
- RBAC not working for plugins
- Single Type Leads To 404 NotFoundError
- Returning to Default Locale (EN) does not Reset the Filter
- Installation withMariaDB HOT 2
- Review Workflows : sticky header hides SubNav but not stages HOT 3
- Incorrect handling of empty list view labels
- [4.24.0] Multiple health checks after one action (save/delete) HOT 7
- CM : Back arrow issue >> Relation field cache is not invalidated when going "back" HOT 1
- DZ in CM : display is really skimpy, some spaces are missing
- Enterprise SSO will not redirect properly and allow users to login
- Strapi loses the connection to the server after saving changes on entities HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strapi.