2

2

I want to create a new case in a FogBugz on Demand project which has open submission in a certain project with a POST request using JQuery.

$.post("https://myFogbugzAccount.fogbugz.com/api.xml",
    {   cmd: 'new', 
        ixProject: '28',
        sCustomerEmail: 'customer@email.com',
        sEvent: 'Comment'
    },  function(xml){
});

Is there a way to overcome the Cross-Domain error which I am getting?

XMLHttpRequest cannot load https://myFogbugzAccount.fogbugz.com/api.xml. 
Origin http://amorural is not allowed by Access-Control-Allow-Origin.
api.xml

POST https://myFogbugzAccount.fogbugz.com/api.xml undefined (undefined)
flag

1 Answer

1

The Access-Control-Allow-Origin error you're seeing is probably because of the protections that Google Chrome has in place when dealing with CORS. Check out this StackOverflow page for possible solutions: http://stackoverflow.com/questions/3136140/cors-not-working-on-chrome

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.