# Overslaan "Toegang tot applicatie autoriseren"

**URL:** <https://meta.discourse.org/t/skip-authorize-application-access/167845>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [21 oktober 2020 om 10:41 UTC](https://meta.discourse.org/t/skip-authorize-application-access/167845 "2020-10-21T10:41:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [21 oktober 2020 om 13:17 UTC](https://meta.discourse.org/t/skip-authorize-application-access/167845/5 "2020-10-21T13:17:07Z")

</div>

If you’re coding up a plugin, you should develop new routes in a plugin-mounted controller that directly perform the tasks you need. These routes can all share a `before_action` that sets the `Access-Control-Allow-{Origin, Headers, Credentials}` response headers (echo the `Origin` request header if it’s on the list of domains your app should be running on).

This way, your JS code can simply invoke `fetch(..., { credentials: "include", ...})` with no API key at all.

---

_[View the full topic](https://meta.discourse.org/t/skip-authorize-application-access/167845)._
