Skip to content

Lock down the api to a single domain #3

@tmutton

Description

@tmutton

In issue #1 we added the ability to make cross domain posts but now we'd like to make this more secure by making posts available to a single domain.

This can be achieved by changing the property in the web section of the arm template from:

"cors": {
              "allowedOrigins": [
                "*"
              ]
            }

to:

"cors": {
              "allowedOrigins": [
                "http://yourdomain.com"
              ]
            }

The domain should be taken from a parameter filled out by the user upon deployment setup.

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