Skip to content

Is the http URL scheme not supported in #include <url>? #3548

Discussion options

You must be logged in to vote

The expansion is handled client-side @ https://github.com/compiler-explorer/compiler-explorer/blob/main/static/compiler-service.js#L269
Note how we specify that the protocol should be https. We could maybe relax this restriction, but even if nothing else restricts it (Such as our Content-Security-Policy), you'd still need to at the very least set a CORS header so that you can fetch it.

Still, have you tried the Tree feature? While it does not allow for changes of the file on your side to be atuomatically picked up, you can add more than 1 file to the compilation that way, and using the "Save/Load" button on the second editor would let you upload the file directly from your fs.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@falbrechtskirchinger
Comment options

Answer selected by falbrechtskirchinger
Comment options

You must be logged in to vote
1 reply
@falbrechtskirchinger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants