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

an error #43

Closed
samselikoff opened this issue Mar 5, 2015 · 5 comments
Closed

an error #43

samselikoff opened this issue Mar 5, 2015 · 5 comments

Comments

@samselikoff
Copy link
Collaborator

@thatikuntap

if run ember server, get below error, but it works once I remove http://localhost:8000/tools application adapter.

Error: Pretender will not respond to requests for URLs. It is not possible to accurately simluate the browser's CSP. Remove the http://localhost from http://localhost:8000/tools and try again

@samselikoff
Copy link
Collaborator Author

do you have something like $.getJSON('localhost:8000/tools') in your app? did you use --proxy http://localhost:800?

@thatikuntap
Copy link

below is code in application adapter

import DS from 'ember-data';
export default DS.RESTAdapter.extend({
// host: 'http://localhost:8000',
corsWithCredentials: true,
//namespace: 'api/'
});

@samselikoff
Copy link
Collaborator Author

yah so you don't want to hardcode localhost in your adapter like that, instead during development do

ember serve --proxy http://localhost:8000

@thatikuntap
Copy link

Thanks Sam!

@samselikoff
Copy link
Collaborator Author

:D

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