Encountering a peculiar scenario with JSONLD: functions fine via IP address, but not through domain. Details: accessing via IP (e.g., http://xxx.xxx.xxx.xxx/) works, but fails with domain (e.g., http://example.com/). Seeking insights on potential causes or overlooked configurations. Any troubleshooting advice?
const jsonLd = {
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Location Information",
"type": "object",
"properties": {
"latitude": {
"type": "number",
"description": "Latitude coordinate of the location"
},
"longitude": {
"type": "number",
"description": "Longitude coordinate of the location"
},
"address": {
"type": "string",
"description": "Street address of the location"
},
"city": {
"type": "string",
"description": "City of the location"
},
"country": {
"type": "string",
"description": "Country of the location"
},
"postal_code": {
"type": "string",
"description": "Postal code of the location"
}
},
"required": ["latitude", "longitude"]
}
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
key="product-jsonld"
/>