GithubHelp home page GithubHelp logo

squaresquash / javascript Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 13.0 147 KB

The Squash client library for JavaScript front-end projects.

License: Apache License 2.0

Ruby 17.60% JavaScript 76.58% CSS 4.61% HTML 1.21%

javascript's People

Contributors

hesselink avatar localshred avatar pieter avatar riscfuture avatar square-build-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

javascript's Issues

Adding user data doesn't work

The README has a section about user data, but it doesn't seem implemented. notify doesn't take two arguments. addUserData does set _squash_user_data on the exception, but this property is never used. Should it be removed from the README, or am I missing something?

Notification rejected because of disallowed origin

So, I've got the Squash web app running on a subdomain (squash.example.com) and a staging environment setup on a different subdomain (staging.example.com). When I try to log a test JS error, it fails. I've search through all the code and I can't find out why this CORS error would occur. What should I do?

Here's the JS console log:

Uncaught Test JavaScript error! application.js:773 
OPTIONS https://squash.example.com/api/1.0/notify 404 (Not Found) squash.js:7
XMLHttpRequest cannot load https://squash.example.com/api/1.0/notify. Origin http://staging.example.com is not allowed by Access-Control-Allow-Origin

Here's the Squash web log:

Started OPTIONS "/api/1.0/notify" for IP_GOES_HERE at 2013-02-28 17:14:19 +0000

ActionController::RoutingError (No route matches [OPTIONS] "/api/1.0/notify"):
  app/middleware/ping.rb:29:in `call'

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.