Error is very generic.
# help
r
Error is very generic.
o
Thatโ€™s odd. I have to ask a couple of questions to understand the issue. 1. What browser are you using, and what version? 2. There seems to be an error in
Tests
tab. It is probably a generic one as one in the
Problems
tab, but you know just in case. 3. Is there any error in the Browser console?
r
Chrome browser and getting CORS error. See below SS
Even in EDGE browser same error
Can you please let me which browser and which version it will work
o
Normally, Chrome should be fine, but I think there is something wrong on our end. I will try to debug the issue, and let you know. Thanks for reporting the issue.
r
thanks a lot. Really appricaite your help. Please try to resolve this issue ASAP.
a
Would you be able to copy one of the failing requests from devtools for me? I am in the same playground as you and the requests are working
r
devtools means ?
a
Like this
one of the
validate
requests
r
image.png
a
if you right click on
validate
you should get an optiont to Copy like in my screenshot
r
image.png
kk
a
then do Copy as Curl and paste it here
r
curl "https://playground-pdp.cerbos.cloud/api/playground/validate" ^ -H "authority: playground-pdp.cerbos.cloud" ^ -H "accept: */*" ^ -H "accept-language: en-US,en;q=0.9" ^ -H "content-type: text/plain;charset=UTF-8" ^ -H "origin: https://play.cerbos.dev" ^ -H "referer: https://play.cerbos.dev/" ^ -H "sec-ch-ua: ^\^"Not_A Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"120^\^", ^\^"Google Chrome^\^";v=^\^"120^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ -H "sec-fetch-dest: empty" ^ -H "sec-fetch-mode: cors" ^ -H "sec-fetch-site: cross-site" ^ -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" ^ --data-raw "^{^\^"playgroundId^\^":^\^"ca24bd42-4ca3-4879-9e83-8442eba9753d^\^",^\^"files^\^":^[^{^\^"fileName^\^":^\^"README.md^\^",^\^"contents^\^":^\^"IyBXZWxjb21lIHRvIHlvdXIgcGxheWdyb3VuZCEKClRoaXMgZW52aXJvbm1lbnQgbGV0cyB5b3UgbGVhcm4gYXMgeW91IGdvIGFuZCBleHBlcmltZW50IHdpdGggQ2VyYm9zIHJpZ2h0IGhlcmUuIE5vIHNldHVwIG5lZWRlZCwgbm8g4oCcd29ya3Mgb24gbXkgbWFjaGluZeKAnSBiaWFzLCBqdXN0IHlvdSBhbmQgeW91ciBwb2xpY2llcy4KCiMjIFBvbGljeSBmaWxlcwoKWW91IGNhbiBhZGQgbmV3IGByZXNvdXJjZWAsIGBkZXJpdmVkIHJvbGVgLCBvciBgcHJpbmNpcGFsYCBwb2xpY2llcyBvbiB0aGUgbGVmdC4KCkZvciBzeW50YXggb2YgdGhlIHBvbGljeSBmaWxlcywgcGxlYXNlIHNlZSBbdGhlIGRvY3VtZW50YXRpb25dKGh0dHBzOi8vZG9jcy5jZXJib3MuZGV2L2NlcmJvcy9sYXRlc3QvaW5kZXguaHRtbCkuCgojIyBUZXN0aW5nIGFjdGlvbnMgZm9yIHByaW5jaXBhbHMgYW5kIHJlc291cmNlcwoKWW91IGNhbiBhZGQgbXVsdGlwbGUgYHByaW5jaXBhbGAgYW5kIGByZXNvdXJjZWAgZGVmaW5pdGlvbnMgb24gdGhlIHJpZ2h0LgpBdCBhbnkgcG9pbnQsIHlvdSBjYW4gc2VlIHdoZXRoZXIgdGhlIGxpc3RlZCBgYWN0aW9uc2AgYXJlIGFsbG93ZWQgb3IgZGlzYWxsb3dlZCBvbiB0aGUgcmlnaHQuCgpBbHRlcm5hdGl2ZWx5LCBgQ2hlY2sgYWxsYCBidXR0b24gYWxsb3cgYnVsayBjaGVja3MgZm9yIGFsbCB0aGUgcHJpbmNpcGFscyBvciByZXNvdXJjZXMuCg==^\^"^}^]^}" ^ --compressed
sent
getting error in console as well. Sending screenshot for your reference
image.png
a
Thats looks fine. Everything our side is running and we aren't seeing any errors from the backend service. It would seem to suggest there is something in the browser instance mutating the request or a firewall etc blocking it
Could you try opening it in an incognito window?
r
ok
No Luck ๐Ÿ™‚
Same error in incognito as well
even same error in EDGE browser as well
a
Hmm very strange
r
Access denied as per company policy
a
Ah
thats the problem then
r
image.png
a
Your network is blocking access to our API
r
need to open which host
a
r
i will raise request
a
That would explain why its working fine for me ๐Ÿ˜†
r
ok. so internally you are calling https://playground-pdp.cerbos.cloud/
a
yes
r
this API is blocked
a
the UI and API are on different domains
UI: play.cerbos.dev API: playground-pdp.cerbos.cloud
r
so once this API is work then this will work ?
a
Yup!
r
thanks will raise request and then check
๐Ÿ‘ 1
will check and update to you