Solving Swagger issue , Windows server https to http redirection
Budget: $10 – $30 USD
Hi,
I've created API for testing and it works fine on my machine.
However, when deployed it, and published it on the server it also works perfect when using HTTPS.
But when I use HTTP I could see the Swagger UI BUT when try any method I got this error
Failed to fetch.
Possible Reasons:
CORS
Network Failure
URL scheme must be "http" or "https" for CORS request.
The issue seems that the server redirects the request from http to https.
We dont want to use the HTTPS we need http.
How to solve this issue?
I published my test on the server
I've created API for testing and it works fine on my machine.
However, when deployed it, and published it on the server it also works perfect when using HTTPS.
But when I use HTTP I could see the Swagger UI BUT when try any method I got this error
Failed to fetch.
Possible Reasons:
CORS
Network Failure
URL scheme must be "http" or "https" for CORS request.
The issue seems that the server redirects the request from http to https.
We dont want to use the HTTPS we need http.
How to solve this issue?
I published my test on the server