Giter VIP home page Giter VIP logo

azcontactform's Introduction

AzContactForm

Cloud based service offering the ability to handle contact form communications made usually from websites

Getting started

Please refer to the wiki

azcontactform's People

Contributors

tmutton avatar

Stargazers

 avatar

Watchers

 avatar  avatar

azcontactform's Issues

Lock down the api to a single domain

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.

Unable to use resourceGroup().location in storageAccounts resource

All resources within the arm template react well to using this value for the location property

"[resourceGroup().location]"

except the storage resource.

After a bit of research I came across this SO answer https://stackoverflow.com/a/42502687/526737 which turned out to be correct. There are some locations for example UK South that do not revolve to something the resource can use. This looks to be an issue on Microsoft's side.

To re-create issue:

  • deploy arm template to a resource group based in location "UK South"

Bad request posting from browser

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.