Coder Social home page Coder Social logo

http https about strapi HOT 6 CLOSED

gregpalaci avatar gregpalaci commented on May 1, 2024
http https

from strapi.

Comments (6)

loicsaintroch avatar loicsaintroch commented on May 1, 2024

Not sure to fully understand your issue. The SSL config needs two keys:

  • disabled (boolean): If true, this middleware will allow all requests through.
  • trustProxy (boolean): If true, trust the X-Forwarded-Proto header.

To enable SSL your config should look like this:

{
  "ssl": {
    "disabled": false,
    "trustProxy": false
  }
}

from strapi.

gregpalaci avatar gregpalaci commented on May 1, 2024

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.

pierreburgy avatar pierreburgy commented on May 1, 2024

Good catch @gregbenner, we are working on it.

from strapi.

pierreburgy avatar pierreburgy commented on May 1, 2024

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.

loicsaintroch avatar loicsaintroch commented on May 1, 2024

@gregbenner: can you try the solution of @pierreburgy and give us your feedback please?

from strapi.

gregpalaci avatar gregpalaci commented on May 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.