Skip to content

Bad request posting from browser #1

Closed

Description

@tmutton

OS: Windows 10
Browser: Chrome 63.0.3239.84

What happened?
Deployed AzContactForm. Used the demo to post a message but the service responded with a "400 Bad Request" status code. The request was also marked as using the OPTIONS verb rather than POST. It looks like the browser has intercepted and re-configured the request.

This looks like a CORS issue.

Activity

  1. self-assigned this
    on Dec 24, 2017
  2. tmutton commented on Dec 24, 2017

    @tmutton
    OwnerAuthor

    Problem fixed by adding a cors - allowedOrigins header to the ARM template

    https://msftplayground.com/2016/08/setting-api-definition-url-cors-value-arm/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions