The xssProtection property (string) enables the built-in cross-site scripting (XSS) protection.
Available since 2020.4.4701.
DayPilot.Scheduler.xssProtection"Enabled" - turns on the built-in XSS protection.
"Disabled" - turns off the built-in XSS protection.
"Enabled"JavaScript
const dp = new DayPilot.Scheduler("dp", {
xssProtection: "Disabled",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
xssProtection: "Disabled",
// ...
};React
<DayPilotScheduler
xssProtection="Disabled"
{/* ... */}
/>Vue
<DayPilotScheduler
xssProtection="Disabled"
<!-- ... -->
/>