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
  • fiber_manual_recordJS: Enable CORS in DNN/2sxc for local development
  • south

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

  • homeChecklist Templates
  • south
  • fiber_manual_recordTrash
  • south
  • fiber_manual_recordJS: Enable CORS in DNN/2sxc for local development
  • south

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

Folders and checklists

  • check_circleCORS - Activate for Local Development

Parts (0) 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. 

Add the following to the system.webServer/rewrite/rules node in your web.config. If your local development host differs from localhost:4200, replace the HTTP_ORIGIN input accordingly.

<rule name="Allow CORS preflight OPTION request on 2sxc routes" stopProcessing="true">
    <match url="/2sxc/" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_ORIGIN}" pattern="(http(s)?://((.+\.)?localhost:4200))" />
<add input="{REQUEST_METHOD}" pattern="OPTIONS" />
</conditions>
<action type="CustomResponse" statusCode="200" subStatusCode="0" statusReason="OK" statusDescription="OK" />
</rule>
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/YaCpkjZy
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