Brackets code editor and Dreamfactory


#1

The Brackets code editor (http://brackets.io) has a live development function that allows you to see your changes as you edit. Does anyone know if it’s possible to configure either Dreamfactory or Brackets so the the live development feature will work? This is the sort of error message I get in the console:

Failed to load resource: the server responded with a status of 403 (Forbidden)
XMLHttpRequest cannot load http://localhost:8080/rest/api_docs. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://127.0.0.1:62350’ is therefore not allowed access.


#2

We’re looking into it. I’ll have more info soon.


#3

I think this is related to CORS. I setup CORS on the Config section of my own DSP but still get the same error when trying the Javascript SDK.


#4

This is definitely a CORS issue. If you set up cors with * as your allowed hosts, you shouldn’t see that error.
I’ll try to replicate, could be a bug in the latest release.


#5

There is a CORS issue with APACHE. Here is the fix from the Bitnami forums.


#6

Jason is correct! Instead of localhost or 127.0.0.1 I tried * and now it’s working. Thanks everyone for the quick replies.


#7

Thanks for following up! Keeps me from digging in on this today.