1) my distributed javascript is placed on sites without any id references (in element attributes)
2) once the script is fired via a site:
- the HTTP Origin Header is detected and verified on my server (checks domain == origin)
- my server then issues and id from the database upon match above for the application logic
I understand HTTP Origin Header can be hacked and then id from the database has a security hole
how do I protect my distributed javascript to prevent the id to be released to a hack?