Coder Social home page Coder Social logo

Https about jsonplaceholder HOT 7 CLOSED

typicode avatar typicode commented on May 22, 2024
Https

from jsonplaceholder.

Comments (7)

georgir avatar georgir commented on May 22, 2024 3

https://jsonplaceholder.herokuapp.com/ works too, and the SSL cert is exactly for that.

from jsonplaceholder.

georgir avatar georgir commented on May 22, 2024 1

Hi, the use-case is just when the client app is running on https for whatever reason, it can not make requests to http.
I see you already have https though it is using a certificate for a different domain - *.herokuapp.com
People that want to test can just visit the frontpage through https and add an exception to accept the certificate despite the inconsistency, and after that the ajax calls should be working fine.

from jsonplaceholder.

typicode avatar typicode commented on May 22, 2024 1

https://jsonplaceholder.typicode.com :)

from jsonplaceholder.

typicode avatar typicode commented on May 22, 2024

Sorry for the previous response, I was thinking about another project.

from jsonplaceholder.

typicode avatar typicode commented on May 22, 2024

I agree. There's letsencrypt that arrives soon. I'll see how it can be added when the service opens.

But on the other hand, I'm a bit curious about the use-case for https since JSON Placeholder uses mostly dummy data?

You can also run the server locally using json-server http://jsonplaceholder.typicode.com/db, if you don't want to send data on the Internet.

from jsonplaceholder.

typicode avatar typicode commented on May 22, 2024

@georgir Amazing, didn't know this "trick" 👍 !

from jsonplaceholder.

dwiyatci avatar dwiyatci commented on May 22, 2024

The workaround from @georgir works for me! ✋ @typicode Any update on this? The use case for me is to fiddle around or to showcase some code on httpS://jsfiddle.net/ :-)

from jsonplaceholder.

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.