brouznouf / fivem-mysql-async

MySql Async Library for FiveM
MIT License
111 stars 106 forks source link

HTTPS/HTTP - Request Blocked - NUI Issue #183

Open Shorty opened 3 years ago

Shorty commented 3 years ago

Describe the bug When opening the MySQL server monitor using the mysql command in F8, you cannot close the menu nor can you view the details within the Server Status tab.

Error Logged The page at 'https://cfx-nui-mysql-async/ui/index.html' was loaded over HTTPS, but requested an insecure resource 'http://mysql-async/close-explorer'. This request has been blocked.

To Reproduce Press F8 Type "mysql" Try to close using X in top right corner.

Issue Content is trying to request http content when loaded in HTTPs, therefore blocking request.

Fix Locate .js file in /ui/js/app.js & /ui/app.js Replace HTTP:// requests for request-server-status & close-explorer to HTTPS://