You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following along with a basic tutorial for jsonapi-resources, I got stuck on the Ember.js side when I tried to load data:
[Report Only] Refused to connect to 'http://localhost:3000/articles/1/author' because it violates the following Content Security Policy directive: "connect-src 'self' ws://localhost:49152 ws://0.0.0.0:49152 http://0.0.0.0:4200/csp-report".
XMLHttpRequest cannot load http://localhost:3000/articles/2/author. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.
Would make sense to add a demo of utilizing https://github.com/cyu/rack-cors (or similar) to configure the Rails side of things. If this is in the demo, I can't find it.
Might even be pretty sweet to include rack-cors as a dependency and provide a reasonable default setup.
The text was updated successfully, but these errors were encountered:
Following along with a basic tutorial for jsonapi-resources, I got stuck on the Ember.js side when I tried to load data:
Would make sense to add a demo of utilizing https://github.com/cyu/rack-cors (or similar) to configure the Rails side of things. If this is in the demo, I can't find it.
Might even be pretty sweet to include rack-cors as a dependency and provide a reasonable default setup.
The text was updated successfully, but these errors were encountered: