https://cerbos.dev logo
#help
Title
# help
r

Rakesh Kumar

01/10/2024, 7:40 PM
Error is very generic.
o

oguzhan

01/10/2024, 7:45 PM
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

Rakesh Kumar

01/10/2024, 7:48 PM
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

oguzhan

01/10/2024, 7:52 PM
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

Rakesh Kumar

01/10/2024, 7:58 PM
thanks a lot. Really appricaite your help. Please try to resolve this issue ASAP.
a

Alex Olivier (Cerbos)

01/10/2024, 8:06 PM
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

Rakesh Kumar

01/10/2024, 8:07 PM
devtools means ?
a

Alex Olivier (Cerbos)

01/10/2024, 8:08 PM
Like this
one of the
validate
requests
r

Rakesh Kumar

01/10/2024, 8:10 PM
image.png
a

Alex Olivier (Cerbos)

01/10/2024, 8:11 PM
if you right click on
validate
you should get an optiont to Copy like in my screenshot
r

Rakesh Kumar

01/10/2024, 8:11 PM
image.png
kk
a

Alex Olivier (Cerbos)

01/10/2024, 8:11 PM
then do Copy as Curl and paste it here
r

Rakesh Kumar

01/10/2024, 8:12 PM
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

Alex Olivier (Cerbos)

01/10/2024, 8:15 PM
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

Rakesh Kumar

01/10/2024, 8:16 PM
ok
No Luck ๐Ÿ™‚
Same error in incognito as well
even same error in EDGE browser as well
a

Alex Olivier (Cerbos)

01/10/2024, 8:19 PM
Hmm very strange
r

Rakesh Kumar

01/10/2024, 8:20 PM
Access denied as per company policy
a

Alex Olivier (Cerbos)

01/10/2024, 8:20 PM
Ah
thats the problem then
r

Rakesh Kumar

01/10/2024, 8:20 PM
image.png
a

Alex Olivier (Cerbos)

01/10/2024, 8:21 PM
Your network is blocking access to our API
r

Rakesh Kumar

01/10/2024, 8:21 PM
need to open which host
a

Alex Olivier (Cerbos)

01/10/2024, 8:21 PM
r

Rakesh Kumar

01/10/2024, 8:21 PM
i will raise request
a

Alex Olivier (Cerbos)

01/10/2024, 8:21 PM
That would explain why its working fine for me ๐Ÿ˜†
r

Rakesh Kumar

01/10/2024, 8:22 PM
ok. so internally you are calling https://playground-pdp.cerbos.cloud/
a

Alex Olivier (Cerbos)

01/10/2024, 8:22 PM
yes
r

Rakesh Kumar

01/10/2024, 8:22 PM
this API is blocked
a

Alex Olivier (Cerbos)

01/10/2024, 8:22 PM
the UI and API are on different domains
UI: play.cerbos.dev API: playground-pdp.cerbos.cloud
r

Rakesh Kumar

01/10/2024, 8:23 PM
so once this API is work then this will work ?
a

Alex Olivier (Cerbos)

01/10/2024, 8:23 PM
Yup!
r

Rakesh Kumar

01/10/2024, 8:23 PM
thanks will raise request and then check
๐Ÿ‘ 1
will check and update to you
3 Views