Opened 6 years ago

Last modified 4 years ago

#135 new enhancement

Add Access-Control-Allow-Origin Header Option

Reported by: zigstum Owned by: Alloc
Priority: major Component: Server fixes
Keywords: API access control Cc:


I'm currently trying to move the webserver folder to a subdir under my website, but there is a brick wall that I cannot climb over - Access-Control. When I have faced this in the past and have had control over the resource I am requesting, I have added a header via PHP:


Would it be possible to add this functionality?
I know a few coders who could add this to the source and recompile with this functionality, but I think it would be useful for others also.

Change History (2)

comment:1 Changed 6 years ago by zigstum

I achieved the desired effect by adding a line to Web.cs (l180) and rebuilding:

response.AddHeader("Access-Control-Allow-Origin", "");
kvp.Value.HandleRequest (request, response, conn, permissionLevel);

Obviously is replaced with my own domain name.

It would be great if we could add this '' string via console or config.

comment:2 Changed 4 years ago by Alloc

  • Priority changed from minor to major

Bumping priority as demand seems to increase.

Note: See TracTickets for help on using tickets.