Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using https as a URL in a callback the callback does not appear to be called #1273

Open
simonhitachi opened this issue Jan 19, 2024 Discussed in #1272 · 1 comment
Open
Labels
feature New feature request

Comments

@simonhitachi
Copy link

Discussed in #1272

Originally posted by simonhitachi January 19, 2024
I have set up some mocking with callbacks on some of the routes as the callbacks reference the same mock server they initially worked when using http. When I changed this to https the callback did not appear to be called (there was no reference to this in the Mockoon UI logs). I even tried pointing this to an external API service using HTTPS and had the same behaviour. One point of note, the endpoint is self-signed.

Is it actually possibly to use a HTTPS callback? When creating a new callback the example URL shown is https, but currently can't get anything other than http requests to get triggered via a callback.

From the discussion response I've had this is because self-signed certificates are not currently supported in callbacks. As Mockoon is a dev/testing tool, it makes sense to allow self-signed certs.

Running Mockoon v6.1.0 on Windows 10.

@isuru89
Copy link
Contributor

isuru89 commented Feb 28, 2024

I agree that this is a very common scenario in dev/test environments.

However, for now, the native library we use for making callbacks is the fetch API, and it has very limited configurations to make it work with TLS setups.

@255kb 255kb added the feature New feature request label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants