Giter VIP home page Giter VIP logo

Comments (5)

sirkitree avatar sirkitree commented on May 24, 2024

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.

gregmercer avatar gregmercer commented on May 24, 2024

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.

sirkitree avatar sirkitree commented on May 24, 2024

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.

gregmercer avatar gregmercer commented on May 24, 2024

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.

sirkitree avatar sirkitree commented on May 24, 2024

We should either add this to the copelandia_rest feature or get it documented. Re-opening.

from copelandia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.