getting the error for wrong content type
Hi, @ASarna2. Thanks for your question.
It sounds like your Content-Type header isn’t set to application/json. But without further details or code snippets, it’s difficult to provide a more specific solution.
Please share more details about your server setup and the code you’re using to handle requests. Otherwise, it will be challenging or impossible for the community to assist you.
Best,
Jaycee
import React, { useEffect } from ‘react’;
import { useHistory } from “react-router-dom”;
import “./HSAuthSSO.less”;
import { Helmet } from “react-helmet”;
import queryString from “query-string”;
import { getWindowEnv } from “../common/Utils”;
import axios from ‘axios’;
const HSAuthSSO = (props) => {
const currParams = queryString.parse(props.location.search);
const { hs_object_id } = currParams;
console.log(“currParams..”, currParams);
const response = {
“results”: [{
“objectId”: “101”,
“title”: “Company card”,
“description”: “My Company Card”,
“properties”: [{
“label”: “Successfully display card”,
“dataType”: “STRING”,
“value”: “my card value”
}]
}]
}
return (JSON.stringify(response))
}
export default HSAuthSSO;
///This the code i’m returing to test hard code API response for testing purpose using React js. But the issue persist.
i need help for CRM UI layout development for my side bar public app (i.e. CRM Card) and how to debug the UI App?
