menu
Logo
  • Why azing?
  • Blog
  • Help
ENarrow_drop_down
  • DE
  • EN
Suche in Checklisten
search
azing Logo ENarrow_drop_down
  • DE
  • EN
  • Why azing?
  • Help
2sxc
drive_folder_upload
  • homeChecklist Templates
  • south
  • fiber_manual_recordTrash
  • south

folder_sharedJS: Enable CORS in DNN/2sxc for local development

  • homeChecklist Templates
  • south
  • fiber_manual_recordTrash
  • south

folder_sharedJS: Enable CORS in DNN/2sxc for local development

Folders and checklists

  • check_circleCORS - Activate for Local Development

Parts (3) expand_more

These are small document-parts which are used in other documents. They are not a starting point for any real activity. Because of this, they will be listed further down and the search will not list them unless requested. 

  • insert_drive_filecustomHeaders definitions to send the correct headers for CORS requests
  • insert_drive_fileIIS Rewrite Rule for HTTP CORS preflight requests
  • check_circleSetup CORS preflight and headers in web.config (2sxc 9.42 and older)

When getting data from DNN/2sxc while running JS on your local PC, the browser will regard this as an unsafe operation, because the domains don't match. So it will first run CORS preflights to verify this is ok. Here's how to activate it: 

  1. 2sxc 9.43+ is able to handle this automatically. Activate the feature called WebApi Options Allow Local
  2. For older installations or if you're not using 2sxc, you need to set up CORS requests in the web.config manually
Logo
Legal | Content Copyright CC-BY 4.0
bug_reportReport Bug
  • info
  • Links
  • Permissions
code Share
code
URL copied to clipboard.
Embed Checklist close
Copy Copy
Content Copyright

CC-BY 4.0

Translations

None

2sxc - Content Management for DNN & Oqtane Logo

2sxc - Content Management for DNN & Oqtane

QR-Code
azing.org/2sxc/r/fyd_fGcI
View & Use

Public (can be used by everybody)

Edit & Admin

Default (all members can edit)

This catalog has a simple permission model, where all members have the same permissions. For advanced permissions, upgrade to Enterprise.

Get something to say?

Comment to start a discussion or make a note
send

please log on to chat

close

Durchsuche ganz Azing