I donโt know if itโs right to ask this question, but I will just do it. I tried to figure out how I want to give out my web application.
This is my situation:
I have created a web application. People who want to use this app can do this for free. BUT , they must be registered on our website.
The application must be bound to a unique key. This key is created as soon as they are registered on our website.
The application is hosted on our server.
A web application should be easy to implement.
I have seen:
I saw other services generating a JS script, for example:
<script type='text/javascript' data-cfasync='false'>window.exampleApi = { l: [], t: [], on: function () { this.l.push(arguments); } }; (function () { var done = false; var script = document.createElement('script'); script.async = true; script.type = 'text/javascript'; script.src = 'https://app.example.com/VisitorWidget/WidgetScript'; document.getElementsByTagName('HEAD').item(0).appendChild(script); script.onreadystatechange = script.onload = function (e) { if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) { var w = new PCWidget({c: 'e01fe420-5c14-55p0-bbec-229c7d9t2f0cf', f: true }); done = true; } }; })();</script>
What i have done so far:
I created a simple web application that requires you to register and log in. From now on, you get an iframe that you can use. I used iframe only for testing.
The web application consists of HTML, CSS, PHP (mostly), JS and jQuery.
I tried:
I tried this one . I am stuck on parts of Python. I have never used / studied this language.
In addition, I am afraid that people will โuseโ my web application without the right to do so.
I think that the generated key should be sent to our site in order to verify the correctness of the key.
Tips, tricks, guides?
Do you have any tips or tricks? Maybe a criticism?
JSONP, CORS or something else? I never did JSONP or CORS, so any advice on this would be good too!
All is welcome!
javascript jquery php cors iframe
Sj03rs
source share