Mbed forum

API Key error to access Pelion Device Management/ Manage Connect Certificates


(Jay Geissberger) #1

I am trying to access “Manage Connect Certificates” for Pelion and it asks me to enter an API Key, which should be generated at https //portal.mbedcloud.com/access/keys.

After having generated the key and pasted it in the field, the “OK” button is unresponsive.

The browser gives following error messages (tried on Chrome, Firefox and Opera) in the Console:

Failed to load https //api.us-east-1 mbedcloud com/v3/api-keys/me: Response to preflight request doesn’t pass access control check: The ‘Access-Control-Allow-Origin’ header has a value ‘https://portal mbedcloud com’ that is not equal to the supplied origin. Origin ‘https //ide mbed com’ is therefore not allowed access.

Failed to load https://api.us-east-1 mbedcloud com/v3/accounts/me?include=limits%2C%20policies&properties=: Response to preflight request doesn’t pass access control check: The ‘Access-Control-Allow-Origin’ header has a value ‘https //portal mbedcloud com’ that is not equal to the supplied origin. Origin ‘https //ide mbed com’ is therefore not allowed access.

account-management.min.js:339 Uncaught (in promise) Error: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
at new r (account-management.min.js:339)
at r.t.complete (account-management.min.js:259)
at account-management.min.js:259
at c.callback (account-management.min.js:355)
at c.crossDomainError (account-management.min.js:355)
at XMLHttpRequest.r.onreadystatechange (account-management.min.js:355)


#2

Hi,

This appears to be a CORS issue. Suggest that open security in chrome and try it.