Fix submitting shares for scrypt

It comprared scrypt share with sha256 hash and return true
without submitting
Implement Cross-Origin-Resource-Sharing headers