Ghost url api cors error


#1

I config my ghost website is cmlanche.com, I can request tags by ghost url api, but by subdomain www.cmlanche.com cant, there is cors error


#2

This guide contains the details for how to grant access to external domains:


#3

Thanks Hannah :slight_smile:


#4

This post was flagged by the community and is temporarily hidden.


#5

I kown the client id is ghost_frontend, but what is the client secret?

I have insert a record to client_trusted_domains,the client secret is the client id in table below?
domains

but it does not work!


About cors, maybe it is bug!
#6

@cmlance Opening multiple threads resulted in them being automatically marked as spam. I have merged them together.

I don’t fully understand your last question about the client secret - this can be found by using the ghost.url.api() helper, or viewing the source of your blog, or in the clients table.