Comments (5)
I take it this is when trying to use the AngularJS client? Are you also running the Drupal instance locally? SOme more details on your setup should help.
from copelandia.
Yes, I'm trying to run the AngularJS client using the grunt server. I using the "grunt server" command and the setup mentioned on this page:
https://github.com/Lullabot/copelandia/tree/master/clients/angularjs
On the same local machine, under a different port, I run a local Drupal instance. The server is setup/run using the Acquia Dev Desktop Control Panel app. The Desktop runs Apache (mod_php) with Php 5.4.8
from copelandia.
The CORS module is included in this repo's Drupal installation and should be enabled on your Drupal site. This can be configured to allow any other domain or site to access by going to /admin/config/services/cors
and setting the "Domains" value to *|*
.
Once this is setup and configured it should allow XHRs from anywhere. Please let me know if this fixes the issue.
from copelandia.
Enabling and configuring the CORS module as you mentioned worked.
I also needed to set the following permission for the anonymous user:
RESTful web services
Access the resource node
Thanks very much for all your help. :)
from copelandia.
We should either add this to the copelandia_rest feature or get it documented. Re-opening.
from copelandia.
Related Issues (20)
- Sharing data-binding between two includes, not an easy task... HOT 4
- Scss files: New Location HOT 2
- susy not found HOT 10
- Services vs RestWS HOT 8
- Testing out a repeat directive for protobots HOT 7
- Recipe View HOT 5
- Implement Dynamic Routing HOT 6
- User registration and authentication HOT 6
- Let authenticated users submit recipes HOT 3
- Look into restangular
- errors, stuck after last pull HOT 2
- Page Routing Issue HOT 4
- Configure Solr HOT 3
- Set up Services + OAuth to authenticate client sites HOT 1
- Copelandia Needs more Emoji HOT 2
- iOS client tweaks
- Initial Setup
- AngularJS client depend on deprecated restws HOT 1
- Question about RestWS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from copelandia.