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.
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
4 freelancere byder i gennemsnit $21 timen for dette job
Hello, I'm a full stack developer with more than 1.5 years of experience. I can fix the CORS issue in no time. Looking forward to working with you. Thanks