Cloud based service offering the ability to handle contact form communications made usually from websites
Please refer to the wiki
Cloud based service offering the ability to handle contact form communications made usually from websites
License: Apache License 2.0
Cloud based service offering the ability to handle contact form communications made usually from websites
Please refer to the wiki
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.
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.