DayPilot.Scheduler.xssProtection

The xssProtection property (string) enables the built-in cross-site scripting (XSS) protection.

Available since 2020.4.4701.

Declaration

DayPilot.Scheduler.xssProtection

Possible Values

  • "Enabled" - turns on the built-in XSS protection.

  • "Disabled" - turns off the built-in XSS protection.

Default Value

"Enabled"

Examples

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"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript