Ssl pdf error on localhost

i deployed erpnext on my local machine and pdf not working as expected , but when i deployed the same feature on online server with domain and SSL . it works fine

is there a way to disable pdf from looking at SSL or not , or the make my local server secure to my local network only ??