Replies: 2 comments 1 reply
-
|
You should see chrome console what blocks it, as i always use fqdn domain names :) |
Beta Was this translation helpful? Give feedback.
-
|
You can use a publicly hosted LHS server with a local dev environment — the main issue is usually not the embed code itself, but browser security restrictions (CORS, domain mismatch, or HTTPS rules). For example, I tested a similar setup where the main site is live on a public domain like powerwashinglv.us , but development is done locally on WordPress/Apache. The widget works perfectly on the public domain, but when the same embed code is used on localhost or a local domain, it may not render. This normally happens because: The LHS server is on one domain, and the widget is loaded from another (localhost/local.dev). The browser blocks requests due to CORS or domain restrictions. HTTP/HTTPS mismatch can also prevent cookies or scripts from loading. A few things that usually fix it: Open Developer Tools (F12) → Console tab and check the exact error. It often clearly shows a CORS or blocked script message. Use a proper local domain (like local.dev or mysite.test) instead of just localhost. If domain restrictions are configured in LHS, make sure your local domain is allowed. Add CORS headers on the LHS server to allow requests from your local dev domain. In short: So yes, using a public LHS server with a local development environment is possible — it just requires allowing the local domain in your LHS/CORS configuration. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Configuration:
Problem: When I embed the widget code on a public url it works great with a declared url. When I embed the code in a local Wordpress or even a plain Apache/html page, the widget doesn't render.
Troubleshooting done:
This feels like I am missing something obvious.
QUESTION: How do we use a publicly hosted LHS server with a local dev environment?
Beta Was this translation helpful? Give feedback.
All reactions