Change json Content Type

  • Unknown's avatar

    Maybe I am missing something or just tired on a Friday.

    Trying to set this up from Microsoft:

    You also need to set up service discovery so that Apple can reach the Intune service and retrieve enrollment information. To complete this prerequisite, set up and publish an HTTP well-known resource file on the same domain that employees sign into. Apple retrieves the file via an HTTP GET request to “https://contoso.com/.well-known/com.apple.remotemanagement”, with your organization’s domain in place of contoso.com. Publish the file on a domain that can handle HTTP GET requests.

     Note

    The well-known resource file must be saved without a file extension, such as .json, to function correctly.

    Create the file in JSON format, with the content type set to application/json. We provide the following JSON samples that you can copy and paste into your file. Use the one that aligns with your environment. Replace the YourAADTenantID variable in the base URL with your organization’s Microsoft Entra tenant ID.

    I logged into our Wordpres site, using WP File Manager, I created a .well-known folder underneath our top-level and uploaded the com.apple.remotemanagement file.

    Running Curl, it shows the Content-Type as text/html. How do I change it to application/json?

    I used Mime Type Settings to add json to the Mime list.

  • Unknown's avatar

    Hi @williamfrya20d6845ed!

    I had a look at your WordPress.com account, but couldn’t find any site linked to it at the moment. Could you please share the domain name of the site you’re working on? That’ll help me take a closer look and guide you further.

  • Unknown's avatar
  • Unknown's avatar

    Hello again,  @williamfrya20d6845ed!

    I checked your site and noticed that it’s not hosted on WordPress.com but is instead a self-hosted WordPress.org site, as you can see here:

    https://wordpress.com/site-profiler/tmprocesscontrols.com

    What you’ll want to do now is ask your question on the WordPress.org community forums at this link:

     https://wordpress.org/support/forum/how-to-and-troubleshooting/ 

    That forum is perfect for sites like yours that use WordPress software but aren’t hosted with WordPress.com.

    If you’re curious about the difference between WordPress.com and WordPress.org, this guide explains it quite well:

    https://wordpress.com/support/com-vs-org/

    Please let us know if you have any questions or need any extra help, and we’ll be happy to assist you.

  • The topic ‘Change json Content Type’ is closed to new replies.