Skip to main content
added 279 characters in body
Source Link
bmike
  • 241.3k
  • 80
  • 433
  • 958

When enrolling a device via Settings > General > VPN & Device Management this error happens and is reproducible. When I wasenroll the device in BYOD by visiting https://mycompany.jamfcloud.com/enroll it all worked fine.

If you also receivingreceive this error.:

enter image description here

Check n8felton's answer for the related requirementsCheck n8felton's answer for the related requirements.

Our failure was because our web server was not returning the correct content type for the hosted com.apple.remotemangement file, which needs to return the content-type application/json, so don't overlook that in the docs!

The best way to check this is to use the Developer Tools in a web browser and check the Header Response like this:

enter image description here

For an Apache web server the solution is to configure the correct MIME type in either the httpd.conf file, in an .htaccess file in your public_html folder, or through your admin portal. In our case we are on a shared web server so don't have access to the httpd.conf file and the changes we applied in our cPanel portal also had no effect.

The answer was to add an entry in the .htaccess file.

An Apache .htaccess file would need the following entry:

AddType application/json remotemanagement

However our web server is running LiteSpeed so the entry is different. For a LiteSpeed server, the entry in the .htaccess file needs to be this:

<IfModule mod_mime.c>

<FilesMatch "[^.]+\.remotemanagement$">
  Header set Content-Type "application/json"
  Header set Content-Encoding "UTF-8"
</FilesMatch>

</IfModule>

I was also receiving this error.

enter image description here

Check n8felton's answer for the related requirements.

Our failure was because our web server was not returning the correct content type for the hosted com.apple.remotemangement file, which needs to return the content-type application/json, so don't overlook that in the docs!

The best way to check this is to use the Developer Tools in a web browser and check the Header Response like this:

enter image description here

For an Apache web server the solution is to configure the correct MIME type in either the httpd.conf file, in an .htaccess file in your public_html folder, or through your admin portal. In our case we are on a shared web server so don't have access to the httpd.conf file and the changes we applied in our cPanel portal also had no effect.

The answer was to add an entry in the .htaccess file.

An Apache .htaccess file would need the following entry:

AddType application/json remotemanagement

However our web server is running LiteSpeed so the entry is different. For a LiteSpeed server, the entry in the .htaccess file needs to be this:

<IfModule mod_mime.c>

<FilesMatch "[^.]+\.remotemanagement$">
  Header set Content-Type "application/json"
  Header set Content-Encoding "UTF-8"
</FilesMatch>

</IfModule>

When enrolling a device via Settings > General > VPN & Device Management this error happens and is reproducible. When I enroll the device in BYOD by visiting https://mycompany.jamfcloud.com/enroll it all worked fine.

If you also receive this error:

enter image description here

Check n8felton's answer for the related requirements.

Our failure was because our web server was not returning the correct content type for the hosted com.apple.remotemangement file, which needs to return the content-type application/json, so don't overlook that in the docs!

The best way to check this is to use the Developer Tools in a web browser and check the Header Response like this:

enter image description here

For an Apache web server the solution is to configure the correct MIME type in either the httpd.conf file, in an .htaccess file in your public_html folder, or through your admin portal. In our case we are on a shared web server so don't have access to the httpd.conf file and the changes we applied in our cPanel portal also had no effect.

The answer was to add an entry in the .htaccess file.

An Apache .htaccess file would need the following entry:

AddType application/json remotemanagement

However our web server is running LiteSpeed so the entry is different. For a LiteSpeed server, the entry in the .htaccess file needs to be this:

<IfModule mod_mime.c>

<FilesMatch "[^.]+\.remotemanagement$">
  Header set Content-Type "application/json"
  Header set Content-Encoding "UTF-8"
</FilesMatch>

</IfModule>
added 66 characters in body
Source Link
Keav
  • 31
  • 4

I was also receiving this error.

enter image description here

ItCheck n8felton's answer for the related requirements.

Our failure was because our web server was not returning the correct content type for the hosted com.apple.remotemangement file, which needs to return the content-type application/json, so don't overlook that in the docs!

The best way to check this is to use the Developer Tools in a web browser and check the Header Response like this:

enter image description here

For an Apache web server the solution is to configure the correct MIME type in either the httpd.conf file, in an .htaccess file in your public_html folder, or through your admin portal. In our case we are on a shared web server so don't have access to the httpd.conf file and the changes we applied in our cPanel portal also had no effect.

The answer was to add an entry in the .htaccess file.

An Apache .htaccess file would need the following entry:

AddType application/json remotemanagement

However our web server is running LiteSpeed so the entry is different. For a LiteSpeed server, the entry in the .htaccess file needs to be this:

<IfModule mod_mime.c>

<FilesMatch "[^.]+\.remotemanagement$">
  Header set Content-Type "application/json"
  Header set Content-Encoding "UTF-8"
</FilesMatch>

</IfModule>

I was also receiving this error.

enter image description here

It was because our web server was not returning the correct content type for the hosted com.apple.remotemangement file, which needs to return the content-type application/json, so don't overlook that in the docs!

The best way to check this is to use the Developer Tools in a web browser and check the Header Response like this:

enter image description here

For an Apache web server the solution is to configure the correct MIME type in either the httpd.conf file, in an .htaccess file in your public_html folder, or through your admin portal. In our case we are on a shared web server so don't have access to the httpd.conf file and the changes we applied in our cPanel portal also had no effect.

The answer was to add an entry in the .htaccess file.

An Apache .htaccess file would need the following entry:

AddType application/json remotemanagement

However our web server is running LiteSpeed so the entry is different. For a LiteSpeed server, the entry in the .htaccess file needs to be this:

<IfModule mod_mime.c>

<FilesMatch "[^.]+\.remotemanagement$">
  Header set Content-Type "application/json"
  Header set Content-Encoding "UTF-8"
</FilesMatch>

</IfModule>

I was also receiving this error.

enter image description here

Check n8felton's answer for the related requirements.

Our failure was because our web server was not returning the correct content type for the hosted com.apple.remotemangement file, which needs to return the content-type application/json, so don't overlook that in the docs!

The best way to check this is to use the Developer Tools in a web browser and check the Header Response like this:

enter image description here

For an Apache web server the solution is to configure the correct MIME type in either the httpd.conf file, in an .htaccess file in your public_html folder, or through your admin portal. In our case we are on a shared web server so don't have access to the httpd.conf file and the changes we applied in our cPanel portal also had no effect.

The answer was to add an entry in the .htaccess file.

An Apache .htaccess file would need the following entry:

AddType application/json remotemanagement

However our web server is running LiteSpeed so the entry is different. For a LiteSpeed server, the entry in the .htaccess file needs to be this:

<IfModule mod_mime.c>

<FilesMatch "[^.]+\.remotemanagement$">
  Header set Content-Type "application/json"
  Header set Content-Encoding "UTF-8"
</FilesMatch>

</IfModule>
Source Link
Keav
  • 31
  • 4

I was also receiving this error.

enter image description here

It was because our web server was not returning the correct content type for the hosted com.apple.remotemangement file, which needs to return the content-type application/json, so don't overlook that in the docs!

The best way to check this is to use the Developer Tools in a web browser and check the Header Response like this:

enter image description here

For an Apache web server the solution is to configure the correct MIME type in either the httpd.conf file, in an .htaccess file in your public_html folder, or through your admin portal. In our case we are on a shared web server so don't have access to the httpd.conf file and the changes we applied in our cPanel portal also had no effect.

The answer was to add an entry in the .htaccess file.

An Apache .htaccess file would need the following entry:

AddType application/json remotemanagement

However our web server is running LiteSpeed so the entry is different. For a LiteSpeed server, the entry in the .htaccess file needs to be this:

<IfModule mod_mime.c>

<FilesMatch "[^.]+\.remotemanagement$">
  Header set Content-Type "application/json"
  Header set Content-Encoding "UTF-8"
</FilesMatch>

</IfModule>