The API is hosted on https. When I try to request the API, the request is made to http instead of https which gives error result.
Mixed Content: The page at .... ....was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint
How to set it to make request on https instead of http.
我发现我没有在base.rb中设置base_path要解决此问题,我们需要添加
add_swagger_documentation base_path: "https://ssl.domain.com"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.