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

caching response header origin #1

Open
letsbelopez opened this issue Nov 30, 2018 · 2 comments
Open

caching response header origin #1

letsbelopez opened this issue Nov 30, 2018 · 2 comments

Comments

@letsbelopez
Copy link

I'm making a similar app, and I'm curious if you ever encountered the iTunes Api erroring between localhost and deploying to now? i.e. making the same request on localhost and a test server.

For example, this is a response from the itunes api that's failing for me:
The iTunes response Header: Access-Control-Allow-Origin is : https://orion-spotify.now.sh which is my test server.

But I'm sending that request from localhost:3000 during development. It looks like iTunes is caching my origin for the requests I made from the test server. If you saw this same error, I'm curious how you fixed it because I can still make requests but not the same requests between localhost and test servers.

localhost_3000_playlist_access_token_bqb4ofriu4titwvdwhhffbkuzk0ltkrg_nlkkmj5943_eleer3fdwvctyzxh50qmqlx6kubhsyzvohvmtspislima7vkfut9rf7z39vytjcpwrkearv9n32ti8tg2-df4riocq8djt7hxs2thxsfuvqrhtwq39nu1g3qr1qtwi1q_26token_type_3dbearer_26expire

@teebszet
Copy link
Owner

teebszet commented Dec 3, 2018

Yes I encountered that error, and didn't end up fixing it!

@letsbelopez
Copy link
Author

I have some spare time and I'm going to be working on a fix. Do you have any direction you can point me in for a fix?

I can make a PR with a fix to this repo when I'm done if you'd like.

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