Towko
Towko

Reputation: 33

Content Security Policy violation in a fresh Ember app

Today I created my first Ember App using the ember-cli:

ember new my-app
cd my-app
ember serve

so that it appears by url localhost:4200. I fail on the next step:

After I perform some text changes I hit Cmd+S and reload the page the content remains the same. The browser console is "clean", but I get error messages in the terminal

Content Security Policy violation: {}

The content of application.hbs:

<h2 id="title">This is a test message</h2>
{{outlet}}

My environment: ember version: 0.2.3, node: 0.12.2, npm: 2.7.6.

I've searched for answers on Stack, but mostly they concern apps that have some external data requests, but my project is brand new and fresh, so I'm confused.

Looking forward to your replies, Thanks!

UPDATE:

Some additional info:

I figured out that the problem is that the ember app does not "hear" the trigger, when a file has been changed. I don't receive a

file changed templates/application.hbs

notification in the terminal. Something globally is blocking or interrupting the regular app run.

Still looking forward receiving your suggestions !

Upvotes: 2

Views: 645

Answers (1)

Towko
Towko

Reputation: 33

Apparently the problem has nothing to do with Content Security Policy violation. It is a local issue of the file system. The terminal didn't display messages that changes were triggered in the template file application.hbs - as a result no updates.

The current solution is starting the ember server with an option:

ember serve --watcher=polling

As soon as I figure out the initial problem I'll return and update this answer. Cheers

Upvotes: 1

Related Questions