I
I
Intelix2019-05-08 16:34:41
JavaScript
Intelix, 2019-05-08 16:34:41

Why are some scripts not working in a cordova project?

There is a cordova project, nothing unusual, everything is standard. The scripts I'm talking about are any, ie. the same alert will not work (see below)
The problem is that scripts written inside html documents do not work when working with all the browsers I have (chrome, edge, mozilla) on the desktop .
BUT external scripts work, connected as files and only in mozilla.
BUT everything works fine in the project preview on the phone via phonegup
What's the deal, what did I miss?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Intelix, 2019-05-10
@Intelix

It turned out that the whole thing is in the line Content-Security-Policy prohibits the execution of "dangerous" scripts <meta http-equiv="Content-Security-Policy" >

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question