prismicio / javascript-jquery-starter

Starter project for JavaScript & JQuery – Works with any prismic.io repository
http://developers.prismic.io
17 stars 29 forks source link

OAuth with private repo missing Access-Control-Allow-Origin header #9

Closed conan closed 10 years ago

conan commented 10 years ago

This may be related to issue #7, but the error I get may be slightly different.

I've just followed the setup video using the javascript-jquery-starter.

When I load up the index.html in the browser, or run server.sh and navigate to localhost:8000, I get the error page. My javascript console (in Chrome) says:

XMLHttpRequest cannot load https://bright-north-site-v4-test.prismic.io/api#json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Note that it's fine if I set my repo to public.

srenault commented 10 years ago

@rudyrigot It should be fixed now, isn't it ?

rudyrigot commented 10 years ago

Yes, I think it was probably a duplicate of #7.

@conan, let us know if you run into the issue again; thanks for reporting it!