Replies: 4 comments 8 replies
-
You're only allowing origin |
Beta Was this translation helpful? Give feedback.
-
@0xharold if you don't want to use That being said, you can certainly add authentication for your API: that's completely separate concern from CORS. It's beyond the scope of this forum to help with that, but like @Montoya said we will be providing an example of how that can be done on the snap side. |
Beta Was this translation helpful? Give feedback.
-
@ziad-saab @Montoya thank you both! |
Beta Was this translation helpful? Give feedback.
-
@ziad-saab @Montoya |
Beta Was this translation helpful? Give feedback.
-
I was following Devcon VI Workshop to build a snap fetching data from an API endpoint. Unfortunately, I am not able to fetch data as it keeps returning:
The API endpoint is build in FastAPI. Here are crucial parts:
which keeps returning:
127.0.0.1:55806 - "OPTIONS /vul/<chainId>/<address> HTTP/1.1" 400 Bad Request
In the snap I am using:
The snap.manifest.json contains:
The weird thing also is that it worked approximately one month earlier when I was playing with it for the first time.
Could anyone be so kind and provide me with a help?
Beta Was this translation helpful? Give feedback.
All reactions