Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access-Control-Allow-Origin header #125

Closed
bradymat opened this issue Jun 29, 2017 · 2 comments
Closed

Access-Control-Allow-Origin header #125

bradymat opened this issue Jun 29, 2017 · 2 comments

Comments

@bradymat
Copy link

Hey I'm using React and Superagent to post to your API, and I'm very unfamiliar with google scripts so I was wondering how/if it was possible to incorporate a CORS header because it won't allow me to do it this way. Cheers :)

@mckennapsean
Copy link
Collaborator

Well, I worked with someone in #124 on a similar issue, I think... so take a look there. The CORS issue should be entirely separate from the Google Script API. It is more an issue with servers and hosting files / running Javascript client-side. The Google Script API is all the serverside stuff.

@angelod1as
Copy link
Contributor

using XHR over Axios or Superagent (as seen in the example files) solves the CORS issue. If a way to use Axios is found, I'd love to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants