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

How would I use this through Ionic's Proxy to bypass CORS? #11

Open
CyrisXD opened this issue Oct 19, 2016 · 2 comments
Open

How would I use this through Ionic's Proxy to bypass CORS? #11

CyrisXD opened this issue Oct 19, 2016 · 2 comments

Comments

@CyrisXD
Copy link

CyrisXD commented Oct 19, 2016

I have set up my proxy as such:

"proxies": [
    {
      "path": "/api",
      "proxyUrl": "https://api.twitter.com/1.1/search/tweets.json"
    }

I have also edited the search URL to match the proxy:
var SEARCH_TWEETS_URL = '/api';

But I get a 404, as I'm not sure if it's building the request URL correctly.

@desirelabs
Copy link

Hello did you find out how to solve your issue ? I'm getting the same whereas I set a proxy :

{
      "path": "/twitter/",
      "proxyUrl": "https://api.twitter.com/"
    }

Thanks in advance

@CyrisXD
Copy link
Author

CyrisXD commented Jan 6, 2017

@desirelabs Sorry no, I gave up on this.

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

2 participants