This osTicket plugins adds the required functionality to use mosparo in your osTicket forms.
The osTicket plugin adds the required functionality to your osTicket installation to use mosparo in your forms.
Please see our How to use introduction on our website to learn how to use mosparo in your form.
In step 3 of the how-to-use explanation, you must integrate mosparo into your osTicket installation. Please follow the Installation part below for this process.
To use the plugin you need the following requirements:
- osTicket >= 1.17.x
- PHP >= 8.1
- Access to the files of your osTicket installation
- Administration access in osTicket
- mosparo installation
To use the plugin, please follow this installation instruction:
- Download the plugin from the release page on GitHub
- Extract the files
- Copy the extracted folder
mosparo-osticket
in the directoryinclude/plugins
inside your osTicket installation. The full path should look likeinclude/plugins/mosparo-osticket
. - Go to the osTicket administration area
- Go to
Manage
>Plugins
- Enable the
mosparo Plugin
- Click on the plugin name to edit the plugin settings
- Fill in the information for your mosparo project
- Go to
Manage
>Forms
- Edit the form where you want to add the mosparo field
- Choose
mosparo
in theType
column - osTicket added enhanced Content Security Policy headers in v1.17.5 and v1.18.1. This is a very good decision, but since there is no option for mosparo to add the mosparo host, you have to adjust the osTicket file manually. Open the file
include/client/header.inc.php
and locate the following code:
header("Content-Type: text/html; charset=UTF-8");
header("Content-Security-Policy: frame-ancestors ".$cfg->getAllowIframes()."; script-src 'self' 'unsafe-inline'; object-src 'none'");
- Replace this code with the following code:
$otherScriptSrc = '';
if (isset($osTicketOtherScriptSources)) {
$otherScriptSrc = implode(' ', $osTicketOtherScriptSources);
}
header("Content-Type: text/html; charset=UTF-8");
header("Content-Security-Policy: frame-ancestors ".$cfg->getAllowIframes()."; script-src 'self' 'unsafe-inline' ".$otherScriptSrc."; object-src 'none'");