glotcode / glot

Pastebin with runnable snippets and API

Home Page:https://glot.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API disallow cors

mokeyish opened this issue · comments

commented

First of all, AWESOME glot, great work!

Can your enable api allow cors? I am writing a plugin obsidian-code-emitter that allow run code in markdown. Some of language want to use glot api.

This would be useful, I've tried a bunch of tricks to bypass the CORS issue, but it doesn't seem to be working. If there is a way to use it with next js could you let us know! Thanks😊!

@pn320 @mokeyish you can use proxy server that bypass cors issue
u can use - https://github.com/Rob--W/cors-anywhere which will bypass cors error