feroult / yawp

Kotlin/Java API framework for Google Appengine
http://yawp.io
MIT License
132 stars 20 forks source link

Support cross domain setup via yawp.yml and/or servlet init options #33

Closed feroult closed 8 years ago

feroult commented 9 years ago

We need a way to fully customize the cross domain behavior. Today we have only this (EndpointServlet):

if (enableCrossDomain) {
    resp.setHeader("Access-Control-Allow-Origin", "*");
    resp.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
    resp.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS, DELETE");
}
feroult commented 8 years ago

@LvlAndFarm added it already, will be released in 1.6.10