Skip to content

Configure CORS properly #5

Description

@dsibinski

For now, all hosts are allowed:

// TODO: configure that properly on prod
app.UseHttpsRedirection();

// TODO: temporary for tests, remove :)
app.UseCors(
    x =>
        x.AllowAnyMethod()
            .AllowAnyHeader()
            .SetIsOriginAllowed(origin => true) // allow any origin
            .AllowCredentials()
); // allow credentials

This task is to remember to change it later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions