[Request] [NUI/DUI] [CEF] Callback request over HTTPS (or allow mixed-content for callbacks)

Hey there,
I wonder if it would be somehow possible to implement that callback urls are reachable per https? Or even allow mixed-content specifically for all defined callbacks?

Background:
I am currently facing this problem where I have a Dui which content (url) is served over https and need to perform a request on a previous defined (nui) callback. Currently we do the requests by calling http://resourceName/callbackName which obviously won’t work in cases where the content is served over https.

Mixed Content: The page at ‘https://***./’ was loaded over HTTPS, but requested an insecure resource ‘http://resourceName/callbackName’. This request has been blocked; the content must be served over HTTPS.

Thanks in advance!

See https://runtime.fivem.net/doc/natives/#_0xF5C6330C
Example https://github.com/citizenfx/cfx-server-data/blob/master/resources/runcode/runcode_web.lua#L102

Oof not this

3 Likes

Thanks! :slight_smile: