Skip to content

Fix Access-Control-Allow-Origin in WCF Tutorial #31

@ehavelaarsnz

Description

@ehavelaarsnz

I worked through Tutorial to easily create a SOAP-based client/server app in OpenSilver (WCF) and it ran ok from the Simulator target but not the Web target.

The example Global.asax has:

    HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "http://localhost:55591");

but my client used port 55592. Perhaps the documentation would be better to suggest:

    HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "*");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions