engineer-man / piston

A high performance general purpose code execution engine.
https://emkc.org/run
MIT License
1.94k stars 250 forks source link

Add config to handle cors #658

Open amarjeetanandsingh opened 6 months ago

amarjeetanandsingh commented 6 months ago

Hi I agree with the point mentioned in this comment that we should not allow the POST /package API from the browser by default as it modifies the system.

However, I am not very convinced with the approach we are taking to disable this feature from a browser.

Impact of no cors-

Proposed Solution:

In case we can conclude on this, I'll be happy to contribute to the implementation :-)